View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
dr chuck dr chuck is offline
external usenet poster
 
Posts: 74
Default executing macros upon opening xls files

thanks for your help. I am totally unfamiliar with workbook event code but i
will give it a shot.

--
dr chuck


"Mike Fogleman" wrote:

In a general module:

Sub Auto_open()
mymacroname 'change
End sub
or

Private Sub Workbook_Open()
mymacroname 'change
End Sub

This is workbook event code.
To input this code, right click on the Excel icon on the worksheet
(or next to the File menu if you maximize your workbooks),
select View Code from the menu, and paste the code

Mike F
"dr chuck" wrote in message
...
I have a macro named "x" that i want to execute automatically when file
"panel.xls" is opened. Is that possible? any suggestions on how to do it?

--
dr chuck