How Do I Create an Auto_Start Macro?

  • Thread starter Thread starter jim evans
  • Start date Start date
J

jim evans

I'm not experienced with Excel macros, but I'm trying to make a macro
that runs automatically when the spreadsheet opens. I thought all I
had to do was name it Auto_Start. Wrong! That doesn't work.

So, how do I do it?

jim
 
Jim

It's Auto_Open() and Auto_Close()

Both have now a replacement event handler which is the preferred method
however

workbook_open() and workbook_close() although these have to be set up in the
ThisWorkbook Class Module not a standard one as with Auto_Open()

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
www.nickhodge.co.uk
(e-mail address removed)
 
It's Auto_Open() and Auto_Close()

Both have now a replacement event handler which is the preferred method
however

workbook_open() and workbook_close() although these have to be set up in the
ThisWorkbook Class Module not a standard one as with Auto_Open()

Thanks very much for your helpful replies.

But, I can't figure out how to give a macro name a () suffix. I keep
getting a "Name not valid" error message.

jim
 

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