Run Macro Upon Open Workbook?

  • Thread starter Thread starter CWit
  • Start date Start date
C

CWit

Hello, I have a macro that I want to run when a workbook is opene
automatically. I only want it to run once. How would I do this? thank
 
Name the macro Auto_Open, or put the code in the Workbook_Open event code.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 
Hi
two ways:
1. In your workbook module (not in a standard module) use the
Workbook_Open() event procedure

2. Rename your macro to Auto_Open()
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top