Text from text box and list box of the macro to be put or exported to ms excel

Text from text box and list box of the macro to be put or exported to ms excel

Anonymous
Not applicable
1,008 Views
1 Reply
Message 1 of 2

Text from text box and list box of the macro to be put or exported to ms excel

Anonymous
Not applicable

What code can i put in a command button to export the text from textbox and listbox to ms excel? Thank you! 

0 Likes
1,009 Views
1 Reply
Reply (1)
Message 2 of 2

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

may I ask which part of the question is an AutoCAD VBA part?

 

>> text from textbox and listbox

You can use <Textbox>.Text or <Listbox>.Text to get access to the text in that control.

 

>> to ms excel

That depends if you have loaded libraries which writes directly into XLSX files (using XML functionality) or you have loaded Excel and connect to it via COM/ActiveX.

 

Please ask more specific questions and in case it has to do with Windows Forms Control and Excel in a Microsoft VBA forum where you get answers for this type of questions much faster.

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
0 Likes