Aug 17, 2004 #1 episode80 Technical User Aug 17, 2004 13 FI I think this is quite easy question but I'm a beginner so help me please... So, I just want to export data from forms (for example from textboxes) to normal worksheet cells. What is the code to do that in VB? Thank you!
I think this is quite easy question but I'm a beginner so help me please... So, I just want to export data from forms (for example from textboxes) to normal worksheet cells. What is the code to do that in VB? Thank you!
Aug 18, 2004 #2 Rodie Programmer Jun 27, 2004 132 FR Easy ... If you textbox is named Text1[/red] and that you want to copy its content in the Cell(A1) of the first sheet of your current Workbook : Code: ThisWorkbook.Worksheets(1).Range("A1") = Text1.Text Ditto if you have a ComboBox : use .Text Rodie Upvote 0 Downvote
Easy ... If you textbox is named Text1[/red] and that you want to copy its content in the Cell(A1) of the first sheet of your current Workbook : Code: ThisWorkbook.Worksheets(1).Range("A1") = Text1.Text Ditto if you have a ComboBox : use .Text Rodie
Aug 18, 2004 #3 PHV MIS Nov 8, 2002 53,708 FR Take a look at the ControlSource property of the textbox. Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244 Upvote 0 Downvote
Take a look at the ControlSource property of the textbox. Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
Aug 18, 2004 Thread starter #4 episode80 Technical User Aug 17, 2004 13 FI Thank you for your help! You really saved my day! Upvote 0 Downvote