Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Workbook_Open Macro

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Workbook_Open Macro

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


--
---
HTH

Bob


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



wrote in message
...
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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 421
Default Workbook_Open Macro

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


wrote in message
...
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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro runs upon wkbk open, but no Workbook_Open or Auto_Open Macro Ron Coderre Excel Programming 2 September 26th 06 05:50 PM
workbook_open execute macro ina Excel Programming 11 May 4th 06 05:12 PM
Workbook_Open macro - what gives? Geoff C Excel Programming 5 March 9th 05 01:27 PM
Help with Workbook_Open macro please Geoff C Excel Programming 7 January 13th 05 10:19 AM
Workbook_Open & Macro James Cox[_2_] Excel Programming 0 July 2nd 04 03:44 PM


All times are GMT +1. The time now is 12:02 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"