Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Macro doesn't start up

Hi all,
I wrote a simple code 'msgbox "workbook open"' and placed
it in workbook_open() and workbook_activate() events. I
saved and closed it as .xls. When I opened it again, the
message doesn't comes up.

I tried that with other files and it seems to work. Does
any one have any ideas/suggestions why this certain file
doesn't seem to run the macro at start up. I know that
open up a template won't activate the open() or activate
() events, but this is not a template file.

Thanks for any suggestions.

John.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Macro doesn't start up

Are you sure you put them in the correct location?

The both belong in the module under ThisWorkbook. (Not just a general module.)

ps. I saved a workbook with both these macros in them as a *.xlt file and
created a new workbook based on that template. Both events fired nicely.



John wrote:

Hi all,
I wrote a simple code 'msgbox "workbook open"' and placed
it in workbook_open() and workbook_activate() events. I
saved and closed it as .xls. When I opened it again, the
message doesn't comes up.

I tried that with other files and it seems to work. Does
any one have any ideas/suggestions why this certain file
doesn't seem to run the macro at start up. I know that
open up a template won't activate the open() or activate
() events, but this is not a template file.

Thanks for any suggestions.

John.


--

Dave Peterson

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
How do you start a Macro? Michael New Users to Excel 7 February 27th 10 04:55 PM
Sub Macro vrs Function Macro Auto Start Pat Excel Discussion (Misc queries) 7 June 6th 07 09:53 PM
Macro Start zephyr Excel Discussion (Misc queries) 0 November 13th 06 05:01 PM
start a macro johnT Excel Worksheet Functions 2 March 6th 05 06:43 PM
Can I start a macro using a # key? Ftca Excel Programming 2 October 13th 03 04:55 PM


All times are GMT +1. The time now is 06:50 AM.

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

About Us

"It's about Microsoft Excel"