View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Neily[_3_] Neily[_3_] is offline
external usenet poster
 
Posts: 26
Default Start macro when excel opens

What to do is rename your macro as Auto_Open and this will then run when the
file is opened.

eg.

Sub Auto_Open
MsgBox("This code runs when the workbook is opened.")
End Sub

Neil
"ps" wrote:

I created a macro that does page setup routines for me (adjusts margins,
create titles, etc). I want this macro to be available everytime I open
Excel. How do I do that?
Thanks!