jeet_singh23
New Member
- Joined
- Jul 19, 2011
- Messages
- 3
Hi,
Please help me with the coding for the combo box. The combo box is in the userform. I want to add items in the drop down menu using VBA from range A6:A35 of a worksheet named "Summary", which may or may not be active since there are numerous sheets in one excel file.
One way I know of doing it is by going to the properties box and filling the rowsource as the range mentioned above. However, I dont want to do it that way. I am looking for some codeing only.
Can it be something like:
Sheets("Summary").Select
Combox1.Additem =(Range"A6:A35")
But the above code does not work.
Do let me know your thoughts.
Please help me with the coding for the combo box. The combo box is in the userform. I want to add items in the drop down menu using VBA from range A6:A35 of a worksheet named "Summary", which may or may not be active since there are numerous sheets in one excel file.
One way I know of doing it is by going to the properties box and filling the rowsource as the range mentioned above. However, I dont want to do it that way. I am looking for some codeing only.
Can it be something like:
Sheets("Summary").Select
Combox1.Additem =(Range"A6:A35")
But the above code does not work.
Do let me know your thoughts.