Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 260
Default Workbook Open event

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default Workbook Open event

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Workbook open event Pawan Excel Worksheet Functions 7 August 26th 08 07:32 AM
Macro doesn't work when used as Workbook Open event Phil Excel Discussion (Misc queries) 2 October 20th 06 02:42 PM
Event: open workbook Jeff Excel Discussion (Misc queries) 1 September 28th 06 02:58 PM
Workbook Open Event Paul D[_2_] Excel Programming 0 October 17th 03 02:39 AM
Workbook Open Event Dave Peterson[_3_] Excel Programming 0 October 17th 03 02:38 AM


All times are GMT +1. The time now is 08:30 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"