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 / May 2008

Tip: Looking for answers? Try searching our database.

Workbook_Open Macro

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
tanner.robin@gmail.com - 28 May 2008 00:57 GMT
I am reading a book on Excel 2003 VBA programming.  It gives a short
synopsis on how to set up the code for the workbook_open macro but
doesn't really go into how to do it.  Can anyone help me with this?  I
am using Excel 2007.  I plan on writing the code on a Vista OS and
implementing it in an XP environment.

Thanks.
R. Tanner
Bob Phillips - 28 May 2008 01:04 GMT
Private Sub Workbook_Open()

   'your code here

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

(there's no email, no snail mail, but somewhere should be gmail in my addy)

>I am reading a book on Excel 2003 VBA programming.  It gives a short
> synopsis on how to set up the code for the workbook_open macro but
[quoted text clipped - 4 lines]
> Thanks.
> R. Tanner
Norman Jones - 28 May 2008 01:36 GMT
Hi Robin,

Bob has shown you an empty
Workbook_Open template, ready to
receive your code; he has also told you
where to place  the procedure and has
given  you explicit instructions on how to
locate the ThisWorkbook module.

See the following link to the NG archives
for many thousands of examples of code
for Workbook_Open event procedures:

           Workbook_Open()
           http://tinyurl.com/654dtv

For an authorative overview of event
procedures, do not fail to visit Chip Pearson's
events page at:

           Events And Event Procedures In VBA
           http://www.cpearson.com/excel/Events.aspx

---
Regards.
Norman

>I am reading a book on Excel 2003 VBA programming.  It gives a short
> synopsis on how to set up the code for the workbook_open macro but
[quoted text clipped - 4 lines]
> Thanks.
> R. Tanner
 
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.