ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   AutoExec (https://www.excelbanter.com/excel-programming/278940-autoexec.html)

George Perchette

AutoExec
 
Hi

I try to create a macro which runs when
excel is started.
I have tried it with - as word - a modul
called "AutoExec" and the routine "Sub Main".
I placed the xls in the XLStart-folder. It did not
work.
Then I tried it with a Auto_Open modul and
a different Modul with a "Sub Auto_Open()" in
it.

All this failed. Does anybody has an idea on
this? Thanks for any help.

Best Regards George



Nikos Yannacopoulos[_3_]

AutoExec
 
You have to put your code in private sub Workbook_Open in
Personal.xls: From the VB Project Explorer select
Personal.xls / this workbook, and from the top left hand
drop down box in the editor window, where it reads
(General), choose Workbook.

Nikos Y. )
-----Original Message-----
Hi

I try to create a macro which runs when
excel is started.
I have tried it with - as word - a modul
called "AutoExec" and the routine "Sub Main".
I placed the xls in the XLStart-folder. It did not
work.
Then I tried it with a Auto_Open modul and
a different Modul with a "Sub Auto_Open()" in
it.

All this failed. Does anybody has an idea on
this? Thanks for any help.

Best Regards George


.



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

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