ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Autoexecute Macros (https://www.excelbanter.com/excel-programming/281742-re-autoexecute-macros.html)

Chip Pearson

Autoexecute Macros
 
Morris,

In the ThisWorkbook code module, put in

Private Sub ThisWorkbook_Open()
' your code here
End Sub

Alternately, you can name the macro, in a standard code module, Auto_Open.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Morris Benjamin" wrote in message
...
How do you setup a macro to start running when the
workbook is opened? Thank you in advance for the
assistance.

Morris





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

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