Hi all
with a combobox in VBA I use range for row source, but how do I use combobox, to list a1,b1,c1, etc
probably something simple, or it can't be done lol..
Please help
Thanks
Keith
Hi all
with a combobox in VBA I use range for row source, but how do I use combobox, to list a1,b1,c1, etc
probably something simple, or it can't be done lol..
Please help
Thanks
Keith
hi.
try
![]()
Please Login or Register to view this content.
Hello Keith
- Is the combobox on a sheet or in a form?
- Do you want to enter the contens of cel A1, B1, etc. or just the text "a1", "b1", etc.
For a combobox named ComboBox1 on sheet1 you can load the contens of Cel A1 ..... into the Combobox when the workbook is opened.
In this workbook:
Gr,![]()
Please Login or Register to view this content.
Gerard
Hi G e r a r d
•Is the combobox on a sheet or in a form? yes its on a VBA form, combobox7
•Do you want to enter the contens of cel A1, B1, etc. or just the text "a1", "b1", etc. just the text 1,2,3 etc
Hi mancubus
I altered the addtenms to the cells that have the numbers in, but nothing shows up when I look into the combobox7
Thanks for your rapid responsesHTML Code:
Keith
Hi Keith,
You better set items during initializing of form:
gr.![]()
Please Login or Register to view this content.
Gerard
hi Quicksnot.
Gerard has already replied that. put the code in UserForm's Initialize Event.
BTW, if items are cell references rather than strings then use .AddItem Range("F1").Value, etc.
lol sorry guys forgot how to mark solved
Keith
-Go to the top of the first post
-Select Thread Tools
-Select Mark thread as Solved
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks