Run Macros When Spreadsheet is Open

G

Guest

I would like to run macros date_check and date_close when the spreadsheet is
first open.

Please help me complete this task.

Thanks,
 
G

Guest

Joe K

Place this code in the ThisWorkbook code module.

Sub Auto_Open()

date_check
date_Close

End Sub
 
L

Leith Ross

I would like to run macros date_check and date_close when the spreadsheet is
first open.

Please help me complete this task.

Thanks,

Hello Joe,

Place your macros in either the Workbook_Open event procedure, or the
Auto_Open procedure. If you need to activate a given sheet as well for
your macro to run then include add the appropriate Sheet names to the
procedures as well.

Sub Auto_Open()
'Sheets("Sheet1").Activate
date_check
date_Close
End Sub

Sub Wokrbook_Open()
'Sheets("Sheet1").Activate
date_check
date_close
End Sub

Sincerely,
Leith Ross
 

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

Similar Threads


Top