event procedure

  • Thread starter Thread starter JIM.H.
  • Start date Start date
J

JIM.H.

Hello,

I could not really understand this part yet but I am using
this event in a module and I want when the excel file is
open it should be launched.

Private Sub Workbook_Open()
MsgBox ("worksheet is activated")
End Sub

Thanks,
Jim.
 
Hi Frank, it works fine thanks. However, if I had this
in 'ThisWorkbook' and want to open file for macro
modification, not for run, how can I do that?
Thanks,
Jim.
 
To prevent macros from automatically running, hold down SHIFT while you
start Excel
 
It is strange but shift does not stop macro from running.
It still runs and exit.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top