Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
How can I set up a Macro to automatically run when I open a specific Excel
file? |
#2
![]() |
|||
|
|||
![]()
Rick
Still supported. (In a standard module) Sub Auto_Open() 'Code here End Sub Preferred (XL97 up), use the workbook_Open() event, thus Private Sub Workbook_Open() 'Code goes here End Sub The latter will fire even if the workbook is open through code For an explanation of different module types and how to implement, go to http://www.nickhodge.co.uk/vba/vbaimplement.htm BTW, where are you posting from, I'm very interested as we seem to have a huge number of posts recently that have had the subject line truncated? It looks like the web interface to the newsgroups at Microsoft, but if you could send the URL it would be great Thanks -- HTH Nick Hodge Microsoft MVP - Excel Southampton, England HIS "Rick Martin" <Rick wrote in message ... How can I set up a Macro to automatically run when I open a specific Excel file? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can excel automatically number itself each time you open a documen | Excel Discussion (Misc queries) | |||
Automatically launch a macro when a fil is opened | Excel Discussion (Misc queries) | |||
Open Word Doc From Excel Macro | Excel Discussion (Misc queries) | |||
How do I get my personal macro worksheet to open whenever I open . | Excel Discussion (Misc queries) | |||
Macro and If Statement | Excel Discussion (Misc queries) |