Hello all How can I fill the Combobox when a sheet is open in Excel 2003? Thanks a lot. henpat
H henpat Nov 11, 2005 #1 Hello all How can I fill the Combobox when a sheet is open in Excel 2003? Thanks a lot. henpat
C Chip Pearson Nov 11, 2005 #2 Try code similar to the following in the ThisWorkbook code module: Private Sub Workbook_Open() With Worksheets(1).ComboBox1 .AddItem "A" .AddItem "B" ' etc End With End Sub -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com
Try code similar to the following in the ThisWorkbook code module: Private Sub Workbook_Open() With Worksheets(1).ComboBox1 .AddItem "A" .AddItem "B" ' etc End With End Sub -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com
H henpat Nov 12, 2005 #3 thanks Chip Pearson said: Try code similar to the following in the ThisWorkbook code module: Private Sub Workbook_Open() With Worksheets(1).ComboBox1 .AddItem "A" .AddItem "B" ' etc End With End Sub -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com Click to expand...
thanks Chip Pearson said: Try code similar to the following in the ThisWorkbook code module: Private Sub Workbook_Open() With Worksheets(1).ComboBox1 .AddItem "A" .AddItem "B" ' etc End With End Sub -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com Click to expand...