Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hey guys, how do I add the value, in the code below ("Jan
Week 1") to combobox1 on sheet Pivot WOW REPS? The below code is not working. I get an error. Private Sub Workbook_Open() ComboBox1.AddItem "Jan Week 1" End sub Thanks Todd Huttenstine |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You have to tell VB what sheet the combobox is on:
Private Sub Workbook_Open() Sheet1.ComboBox1.AddItem "Jan Week 1" End Sub Replace "Sheet1" with the code name of the correct worksheet. -- Jim Rech Excel MVP "Todd Huttenstine" wrote in message ... | Hey guys, how do I add the value, in the code below ("Jan | Week 1") to combobox1 on sheet Pivot WOW REPS? The below | code is not working. I get an error. | | | Private Sub Workbook_Open() | ComboBox1.AddItem "Jan Week 1" | End sub | | Thanks | Todd Huttenstine |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Workbook open event | Excel Worksheet Functions | |||
Macro doesn't work when used as Workbook Open event | Excel Discussion (Misc queries) | |||
Event: open workbook | Excel Discussion (Misc queries) | |||
Workbook Open Event | Excel Programming | |||
Workbook Open Event | Excel Programming |