Thread: autorun a macro
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Bearacade[_40_] Bearacade[_40_] is offline
external usenet poster
 
Posts: 1
Default autorun a macro


Within the Visual Basic Editor (Alt-F11), click on the ThisWorkbook an
enter this into the main window:

Private Sub Workbook_Open()

MsgBox ("This Macro Run on Open")

End Sub

Close the Visual Basic Editor, Save the Worksheet, Close it and Open i

--
Bearacad

-----------------------------------------------------------------------
Bearacade's Profile: http://www.excelforum.com/member.php...fo&userid=3501
View this thread: http://www.excelforum.com/showthread.php?threadid=57056