#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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


.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
AutoExec question for imported data (2000) scol Excel Discussion (Misc queries) 2 May 7th 07 07:49 PM
autoexec macro to run on opening the spreadsheet lee Excel Discussion (Misc queries) 2 January 20th 07 02:01 PM
compile error in hidden module autoexec.new in excel 2003 maurice Charts and Charting in Excel 1 January 1st 07 06:13 PM
What does "Compile error in hidden module:Autoexec New" mean? Karla Excel Discussion (Misc queries) 1 September 28th 05 04:47 PM
Autoexec Macro Rick Excel Worksheet Functions 4 August 24th 05 06:15 PM


All times are GMT +1. The time now is 12:16 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"