Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Load Macro at start up?

Try this

Sub Auto_Open()

Record macro as normal. Auto_Open will run everytime.


-----Original Message-----
How could I load a macro as soon as the workbook is

opened?
Thanks.
MJ Antoszkiw.
.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 493
Default Load Macro at start up?

not quite true - Auto macros do not automatically run if the
workbook is opened from code.

Instead use the Worksheet_Open() event macro.

In article ,
wrote:

Try this

Sub Auto_Open()

Record macro as normal. Auto_Open will run everytime.


-----Original Message-----
How could I load a macro as soon as the workbook is

opened?
Thanks.
MJ Antoszkiw.
.

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
Macro to Load Data from ver 1 to ver 2 [email protected] Excel Discussion (Misc queries) 2 August 24th 06 01:04 AM
Disabling an 'on load' macro Gizmo63 Excel Worksheet Functions 2 April 20th 06 12:51 PM
Load Macro at start up? MJ Antoszkiw Excel Programming 0 October 21st 03 04:11 PM
Load Macro at start up? Tom Ogilvy Excel Programming 0 October 21st 03 03:49 PM
Load Macro at start up? Frank Isaacs Excel Programming 0 October 21st 03 03:47 PM


All times are GMT +1. The time now is 03:49 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"