workbook open event

  • Thread starter Thread starter JT
  • Start date Start date
J

JT

I have a public sub call "Test1". I want to make this
macro run when the workbook is open but I'm not sure how
to use the workbook open event. Any help would be greatly
appreciated. Thanks...
 
Private Sub Workbook_Open()
'YOUR CODE
End Sub

put this in the "ThisWorkbook" module
 
Put this in the ThisWorkbook code module (with Test1 in a regular code
module):

Private Sub Workbook_Open()
Test1
End Sub
 

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