Run When Open Macro

  • Thread starter Thread starter T.R.
  • Start date Start date
T

T.R.

I am looking for a Macro to tell another Macro to run
automatically whenever I open an Excel workbook.

Thanks for the help.

T.R.
 
Hi T.R

Two ways

Sub Auto_open()
'code or macro name
End Sub

Copy in a normal module
If you use a Auto_open macro then this wil not run if you open the file with a macro


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

Copy in the Thisworkbook module
 

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