LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 380
Default run macro whenever any workbook opens

Tony,

This code does not go into a class module, you put it in ThisWorkbook code
module. It uses a slightly different implementation of the technique than
Chip.

And yes, it is fine in the add-in.

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"Tony Logan" wrote in message
...
One additional question: Is this code I can add to the add-in (the .xla
file)? Or am I going to need to add it to an Excel file?

If I"m understanding Chip Pearson's sample file correctly, if I want to
trigger an action that occurs every time a workbook is opened, I'll need

to
have some .xls file containing my code open, too.

And so my solution seems two-fold:
1. Write code that triggers an action whenever a workbook is opened.
2. Write code that opens the doc containing the code for #1 any time Excel
starts.

Just want to make sure I'm heading down the right path.

Thanks.



 
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
when opening an Excel Workbook, another blank workbook also opens Gord Dibben Excel Discussion (Misc queries) 0 October 12th 07 09:49 PM
when opening an Excel Workbook, another blank workbook also opens spmu Excel Discussion (Misc queries) 0 October 12th 07 01:46 PM
When attempting to run macro Excel opens different workbook Rasta Excel Programming 0 July 27th 05 08:46 PM
Personal workbook opens when Excel opens SheriTingle Excel Discussion (Misc queries) 2 March 30th 05 12:22 AM
Run Macro when workbook opens Jean-Paul Viel Excel Programming 0 August 28th 03 08:59 PM


All times are GMT +1. The time now is 04:57 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"