ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Have macro run automatically as soon as excel is opened. (https://www.excelbanter.com/excel-programming/362466-have-macro-run-automatically-soon-excel-opened.html)

Dtown Dawg

Have macro run automatically as soon as excel is opened.
 
I have a macro in excel. I open excel. Hit Alt+F8 and then I click on run.

Is it possible to have this macro run as soon as I open the excel workbook?

Chip Pearson

Have macro run automatically as soon as excel is opened.
 
If you name the macro Auto_Open, it will run when the workbook is
opened.


"Dtown Dawg" wrote in
message
...
I have a macro in excel. I open excel. Hit Alt+F8 and then I
click on run.

Is it possible to have this macro run as soon as I open the
excel workbook?




Dtown Dawg

Have macro run automatically as soon as excel is opened.
 
Thanks for your help, and sorry if I caused frustration as I found this
answer posted about 10 different places after I posted the question.

Now is there code that I can add that will do the following:
1. Have a message pop up that says "Please be patient while Macro Runs"
2. Then have the macro close excel.

Thank you.
Dtown Dawg

"Chip Pearson" wrote:

If you name the macro Auto_Open, it will run when the workbook is
opened.


"Dtown Dawg" wrote in
message
...
I have a macro in excel. I open excel. Hit Alt+F8 and then I
click on run.

Is it possible to have this macro run as soon as I open the
excel workbook?






All times are GMT +1. The time now is 03:07 AM.

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