Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Setup / October 2004

Tip: Looking for answers? Try searching our database.

automatic macro at opening of excel file

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Willystu - 27 Oct 2004 01:07 GMT
How do you write a macro to run automatically when opening an excel file? I
find no information in Excel Help, nor several excel/VBA textbooks from
library. This was exceptionally easy to do in Lotus 1-2-3 and seems to me to
be an essential tool.
Gord Dibben - 27 Oct 2004 01:18 GMT
Willy

You can use in a General Module

Sub Auto_Open()
   your code or macroname
End Sub

Or in the ThisWorkbook module.

Sub WorkBook_Open()
   your code or macroname
End Sub  

Gord Dibben Excel MVP

>How do you write a macro to run automatically when opening an excel file? I
>find no information in Excel Help, nor several excel/VBA textbooks from
>library. This was exceptionally easy to do in Lotus 1-2-3 and seems to me to
>be an essential tool.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.