ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   running macro upon a spreadsheet's startup (https://www.excelbanter.com/excel-programming/285594-running-macro-upon-spreadsheets-startup.html)

Joe S.

running macro upon a spreadsheet's startup
 
In my quest to automate some of my files, I am trying to
run Excel files via window's "scheduled tasks." The
files I want to automate all have a macro that
refreshes/manipulates data, so I need to automate the
macro to run when the particular file is opened.

How can I automatically start a spreadsheet's macro when
I open up that spreadsheet?

Thanks for the help,
Joe

Trevor Shuttleworth

running macro upon a spreadsheet's startup
 
Joe

call the macro Auto_Open in a general module or use the Workbook_Open event
in the Workbook class module.

Regards

Trevor


"Joe S." wrote in message
...
In my quest to automate some of my files, I am trying to
run Excel files via window's "scheduled tasks." The
files I want to automate all have a macro that
refreshes/manipulates data, so I need to automate the
macro to run when the particular file is opened.

How can I automatically start a spreadsheet's macro when
I open up that spreadsheet?

Thanks for the help,
Joe




joe

running macro upon a spreadsheet's startup
 
Awesome, thanks a bunch!





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

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