Combobox in Excel

H

henpat

Hello all
How can I fill the Combobox when a sheet is open in Excel 2003?

Thanks a lot.
henpat
 
C

Chip Pearson

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

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top