ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Macro to run when sheet opens (https://www.excelbanter.com/excel-programming/301383-re-macro-run-when-sheet-opens.html)

Frank Kabel

Macro to run when sheet opens
 
Hi
do you mean the worksheet or the workbook? In both cases you need an
event procedure
worksheet: worbook event: workbook_sheetactivate
workbook: workbook event: workbook_open()

See: http://www.cpearson.com/excel/events.htm


--
Regards
Frank Kabel
Frankfurt, Germany


Rakesh wrote:
How can I get a macro to run automatically when a worksheet
containing that macro is opened?

Thanks.




All times are GMT +1. The time now is 09:30 AM.

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