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 / February 2005

Tip: Looking for answers? Try searching our database.

Hi

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Neil - 10 Feb 2005 13:28 GMT
How do i trigger a macro when a spreasheet opens?

Cheers!

Neil
Gord Dibben - 10 Feb 2005 17:36 GMT
Neil

Place it in the ThisWorkbook module like so.........

Private Sub Workbook_Open()

your code or macroname goes here

End Sub

Right-click on the Excel logo left of "File" on menu bar or on logo at top
left corner of Window if not maximized.

Select "View Code" to open the module.

Gord Dibben Excel MVP

>How do i trigger a macro when a spreasheet opens?
>
>Cheers!
>
>Neil
Dave Peterson - 10 Feb 2005 20:48 GMT
Or you can leave it in a General module and call it Auto_open().

> How do i trigger a macro when a spreasheet opens?
>
> Cheers!
>
> Neil

Signature

Dave Peterson

 
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.