ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   name of a macro to auto run (https://www.excelbanter.com/excel-programming/329265-name-macro-auto-run.html)

Pete Jones

name of a macro to auto run
 
Hi...what do I name a macro to get it to run when I open a workbook.

Thanks in advance.

Pete

Harald Staff

name of a macro to auto run
 
Hi Pete

Sub Auto_open()

HTH. Best wishes Harald


"Pete Jones" skrev i melding
...
Hi...what do I name a macro to get it to run when I open a workbook.

Thanks in advance.

Pete




Tom Ogilvy

name of a macro to auto run
 
Private Sub workbook_Open()

end Sub

and place it in the ThisWorkbook.Module

or use the older


Sub Auto_Open()

end Sub

and place it in a general module.

--
Regards,
Tom Ogilvy

"Pete Jones" wrote in message
...
Hi...what do I name a macro to get it to run when I open a workbook.

Thanks in advance.

Pete





All times are GMT +1. The time now is 10:54 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com