Auto Start Macro

  • Thread starter Thread starter Aaron Russell
  • Start date Start date
A

Aaron Russell

Is there any way to have a macro start right when the excel spreadsheet is
opened?
 
Hi Aaron

yes, place the macro in the THISWORKBOOK module (rather than a normal module
sheet) with the name
Private Sub Workbook_Open()
'your code here
End Sub

Cheers
JulieD
PS Macros still have to be enabled for it to run
 
Hi
either name your macro Auto_open() or put your code in the workbook
event procedure: Workbook_open()
 
Back
Top