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 / Programming / September 2007

Tip: Looking for answers? Try searching our database.

Auto run a macro

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jayjay - 20 Sep 2007 09:36 GMT
Hi,

Can anyone please tell me how to run a macro automatically from the
VB-editor when opening the spreadsheet ?

Br,
Jakob
Zone - 20 Sep 2007 09:47 GMT
You can put this in the workbook module:

Private Sub Workbook_Open()
    'your code here
End Sub

or you can put this in a standard module:

Sub Auto_open()
    'your code here
End Sub

> Hi,
>
[quoted text clipped - 3 lines]
> Br,
> Jakob
 
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.