ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   how to execute a macro automatically (https://www.excelbanter.com/excel-programming/366095-how-execute-macro-automatically.html)

Roger[_22_]

how to execute a macro automatically
 
can the answer be posted here so others can read it , please

Ro



Ardus Petus

how to execute a macro automatically
 
In a general module:

Sub Auto_open()
End sub


HTH
--
AP

"Roger" a écrit dans le message de news:
...
can the answer be posted here so others can read it , please

Ro




Bob Phillips

how to execute a macro automatically
 

"Roger" wrote in message
...
can the answer be posted here so others can read it , please


Wouldn't do it any other way.

In response to the question

Private Sub Workbook_Open()
End Sub

'This is workbook event code.
'To input this code, right click on the Excel icon on the worksheet
'(or next to the File menu if you maximise your workbooks),
'select View Code from the menu, and paste the code





All times are GMT +1. The time now is 12:25 PM.

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