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 / New Users / October 2006

Tip: Looking for answers? Try searching our database.

How to execute a macro when document open

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sciamano - 12 Oct 2006 23:51 GMT
Hi. I've registered a macro, how can I execute it every time that I open the
document??

Thanks
Bob Phillips - 13 Oct 2006 00:35 GMT
Private Sub Workbook_Open()
   Call myMacro
End Sub

'This is workbook event code.
'To input this code, right click on the Excel icon on the worksheet
'(or next to the File menu if you maximise your workbooks),
'select View Code from the menu, and paste the code

Signature

HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

> Hi. I've registered a macro, how can I execute it every time that I open the
> document??
>
> Thanks
 
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.