View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Chip Pearson Chip Pearson is offline
external usenet poster
 
Posts: 7,247
Default Auto macro opening excel workbook

Open the VBA Editor. Go to the Insert menu and choose Module (not
Class Module). In that module, place the following code:

Sub Auto_Open()
' the code you want to run
End Sub


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com




"Baris" wrote in message
...
I would like to run automaticaly a macro when opening a
workbook.
I have found answers, but I don't understand them. Please
detail me the step
in excel and visual basic to make this possible.

Thank you very much in advance.