TonySondergeld
New Member
- Joined
- Jul 11, 2009
- Messages
- 31
Hi all, I have a combobox (active x) on a sheet in excel 2007. What I want it to do is fill it with the Months (Auto, January to December) and also have it run (fill) when the workbook opens. The Auto in the combobox is used to run the reports at the current month and then you can select a month so to be able to lookup data when ever you want.
So I think to be able to run it a startup of the workbook it has to go into the module is this right as I have used this code before:
Sub Fill_CM_Months()
With Sheets("Dashboard")
.OLEObjects("CM_Months").ListFillRange = "Control!I3:I15"
End With
End Sub.
But it wont work in this instant.
Thanks for any help.
So I think to be able to run it a startup of the workbook it has to go into the module is this right as I have used this code before:
Sub Fill_CM_Months()
With Sheets("Dashboard")
.OLEObjects("CM_Months").ListFillRange = "Control!I3:I15"
End With
End Sub.
But it wont work in this instant.
Thanks for any help.