View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Bob Phillips Bob Phillips is offline
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