#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Autorun

Thanks a lot!

Just a little note: Auto_Open() didn't work but Workbook_Open() did.

"OssieMac" wrote in message
...
2 ways. One is with and event. See Chip Pearsons site for more info.
http://www.cpearson.com/excel/events.htm

The very simple way is to name the procedure as this:-

Sub Auto_Open() and it will run automatically evary time you open the
workbook.

Sub Auto_Close() runs on closing the workbook.

Regards,

OssieMac

"EmilH" wrote:

Hi.

How can I make my code run as soon as the .xls document is opened?

Thanks in advance.
EmilH.





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
Autorun.inf Pam Excel Programming 2 October 17th 05 06:56 PM
Autorun a macro Paul Wisken Excel Programming 6 September 7th 05 09:02 AM
Autorun Add-In A.M Excel Programming 2 September 21st 04 04:19 PM
Autorun Macro RK[_3_] Excel Programming 2 February 26th 04 12:15 PM
Autorun a macro Nigel Chapman Excel Programming 1 February 4th 04 01:02 PM


All times are GMT +1. The time now is 01:21 AM.

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"