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

Hi,

I knew the "autopen" function under Excel 97.

But how do the same so easily with Excel 2002 ?

How to know which version of Excel is running ?

What are the different ways to launch a VBA macro with opening a file
(Ex : "autopen" with Excel 97, XXXX with Excel 2002, etc.)

Many thanks for your anwers ...
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 201
Default Launch a VBA macro with opening a file

There are two ways. One is to place the macro in a regular module and name
the macro "AutoOpen". The other is to use the Workbook_Open macro in the
workbook module.
To find the version of Excel you have, select Help with a worksheet on
the screen. Select "About Microsoft Excel" from the drop-down menu. HTH
Otto
"LOLO53" wrote in message
om...
Hi,

I knew the "autopen" function under Excel 97.

But how do the same so easily with Excel 2002 ?

How to know which version of Excel is running ?

What are the different ways to launch a VBA macro with opening a file
(Ex : "autopen" with Excel 97, XXXX with Excel 2002, etc.)

Many thanks for your anwers ...



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Launch a VBA macro with opening a file

Auto_Open works with Excel 5 through and to the latest version (Excel 2003).

In xl97 and later you can use the workbook_Open event

see Chip Pearson's page on Events
http://www.cpearson.com/excel/events.htm

--
Regards,
Tom Ogilvy

"LOLO53" wrote in message
om...
Hi,

I knew the "autopen" function under Excel 97.

But how do the same so easily with Excel 2002 ?

How to know which version of Excel is running ?

What are the different ways to launch a VBA macro with opening a file
(Ex : "autopen" with Excel 97, XXXX with Excel 2002, etc.)

Many thanks for your anwers ...



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
Launch new instance of Excel when opening .xls files Laura Excel Discussion (Misc queries) 1 October 3rd 07 04:19 PM
Can a macro be run on opening the file? Cortez Excel Discussion (Misc queries) 3 March 8th 07 08:34 PM
Can a macro be run on opening the file? Cortez Excel Discussion (Misc queries) 0 March 8th 07 04:57 PM
Opening excel from launch bar opens 2 existing files, not blank on laralea Excel Discussion (Misc queries) 2 January 12th 06 07:30 PM
launch any file type from excel macro arron laing Excel Programming 4 July 23rd 04 08:23 AM


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