LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 38
Default Workbook Open Event

Did you place the code in ThisWorkbook?

Private Sub Workbook_Open()
MsgBox "Hi Paul"
End Sub

The above works on my machine. I get a nice warm greeting everytime I open
that workbook
Paul D

wrote in message
om...
I need to display a custom menu when a particular workbook is open. I
am using VBA code that is right out of a book on Excel and VBA. The
code is as follows: Private Sub Workbook_Open()
Call AddMenu 'This runs the AddMenu macro.
End Sub

It is not working and I have spent way too much time on it. I think
what needs to happen is to find a way to identify the specific
workbook object so the Workbook_Open sub will know to run but I am not
figuring out how to write this code. Thanks in advance for the help.
This is a great group and I hope to get good enough at macros to start
contributing myself.
Ken



 
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
Open Event jlclyde Excel Discussion (Misc queries) 5 September 17th 08 09:18 PM
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 Dave Peterson[_3_] Excel Programming 0 October 17th 03 02:38 AM


All times are GMT +1. The time now is 11:05 AM.

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"