ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Macro Running at Spreadsheet Start (https://www.excelbanter.com/excel-programming/301021-macro-running-spreadsheet-start.html)

MWhitehead

Macro Running at Spreadsheet Start
 
Hi, I wish to load a macro I have created when the spreadsheet firs
loads up. Is this possible? If so, how do I go about it?


I would like to thank you in advance for any help

--
Message posted from http://www.ExcelForum.com


mangesh_yadav[_2_]

Macro Running at Spreadsheet Start
 
use the following sub in one of your modules

Sub Auto_Open()

'Action to be done when the excel sheet starts
'enter your code here

end su

--
Message posted from http://www.ExcelForum.com


Harald Staff

Macro Running at Spreadsheet Start
 
Hi

Rename the macro to
Sub Auto_open()
and it will. See also
http://www.cpearson.com/excel/events.htm
on events.

HTH. Best wishes Harald

"MWhitehead " skrev i melding
...
Hi, I wish to load a macro I have created when the spreadsheet first
loads up. Is this possible? If so, how do I go about it?


I would like to thank you in advance for any help.


---
Message posted from http://www.ExcelForum.com/




MWhitehead[_2_]

Macro Running at Spreadsheet Start
 
Thanks a million!

- Mik

--
Message posted from http://www.ExcelForum.com



All times are GMT +1. The time now is 01:44 PM.

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