Macro's on startup

  • Thread starter Thread starter k483
  • Start date Start date
K

k483

How do you execute a Macro on loading a worksheet (that is, withou
having to click a button or cell)
 
If you name the macro Auto_Open, it will execute when the
workbook is opened.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
 
Worksheet or Workbook?

Sheet Module...

Private Sub Worksheet_Activate()
'your macro name or code
End Sub

ThisWorkbook Module....

Private Sub Workbook_Open()
'macro name or code
End Sub

Gord Dibben Excel MVP
 

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