ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   how to get a macro to run when the file opens (https://www.excelbanter.com/excel-programming/311924-how-get-macro-run-when-file-opens.html)

Mary[_6_]

how to get a macro to run when the file opens
 
Hi,

Anyone know if this this possible?

Thanks

Mary

Kris

how to get a macro to run when the file opens
 
Hello Mary,

Name your macro Auto_Open()

Example:

Sub Auto_Open()
'your macro code
End sub

Sincerely,

Kris

-----Original Message-----
Hi,

Anyone know if this this possible?

Thanks

Mary
.


Tom Ogilvy

how to get a macro to run when the file opens
 
Look at Chip Pearson's page on Events

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

You want the workbook_open event.

--
Regards,
Tom Ogilvy


"Mary" wrote in message
...
Hi,

Anyone know if this this possible?

Thanks

Mary




No Name

how to get a macro to run when the file opens
 

right click the excel sheet next to the menu option 'File'
click 'view code'
right your code here and it runs on open.


-----Original Message-----
Hi,

Anyone know if this this possible?

Thanks

Mary
.



All times are GMT +1. The time now is 02:29 PM.

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