Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Autorun a macro

Can anyone help me please :

I want to run a macro automatically as soon as I open an Excel workbook. Is
this possible?
Failing that is it possible to run a macro from with an IF statement -
If(a35,runmacro,0) ?????

Thanks

Nigel


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Autorun a macro

Hi nigel
two ways:
1. Name your macro Auto_Open
2. place your code in the workbook_open event of your workbook module

Frank

Nigel Chapman wrote:
Can anyone help me please :

I want to run a macro automatically as soon as I open an Excel
workbook. Is this possible?
Failing that is it possible to run a macro from with an IF

statement -
If(a35,runmacro,0) ?????

Thanks

Nigel



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 Macro chrisnsmith Excel Worksheet Functions 5 February 4th 09 07:25 PM
autorun a macro [email protected] New Users to Excel 2 January 24th 08 05:41 PM
Autorun Macro rexmann Excel Discussion (Misc queries) 2 August 2nd 06 02:03 PM
MACRO AUTORUN b52shut Excel Discussion (Misc queries) 1 December 15th 05 08:48 AM
autorun a macro Reab Excel Programming 1 November 28th 03 09:42 PM


All times are GMT +1. The time now is 01:40 PM.

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

About Us

"It's about Microsoft Excel"