ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Text box value to userform (https://www.excelbanter.com/excel-programming/443803-text-box-value-userform.html)

Do

Text box value to userform
 
Hi

In my sheet i have a text box. Whats the VBA code for loading the Text Box
13 value into combobox1 on a userform on 'initialize'`


/Do



Rick Rothstein

Text box value to userform
 
In my sheet i have a text box. Whats the VBA code for loading the
Text Box 13 value into combobox1 on a userform on 'initialize'`


Try this line of code...

Me.ComboBox1.AddItem Worksheets("Sheet6").Shapes("Text Box
13").OLEFormat.Object.Text

--
Rick Rothstein (MVP - Excel)


Do

Text box value to userform
 
"Rick Rothstein" skrev i en meddelelse
...
In my sheet i have a text box. Whats the VBA code for loading the
Text Box 13 value into combobox1 on a userform on 'initialize'`


Try this line of code...

Me.ComboBox1.AddItem Worksheets("Sheet6").Shapes("Text Box
13").OLEFormat.Object.Text

--
Rick Rothstein (MVP - Excel)


Thx Rick - works perfect ;o)

Do/




All times are GMT +1. The time now is 09:02 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com