Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
clippan
 
Posts: n/a
Default Execute macro at opening file

I have learned to do simple macros in Excel and how to combine them
with CTRL+a and so. Now I would like to have a worksheet with some
areas being erased at the opening of the file to make a clean start.
I can do it with a macro like Ctrl+a but how shall I do to have the
macro automatically run at the opening of the file, like the autostart
in Windows?

--
Many thanks in advance !
Clippan
  #2   Report Post  
Posted to microsoft.public.excel.newusers
Ron de Bruin
 
Posts: n/a
Default Execute macro at opening file

Hi

You can use the open/activate event of the workbook
See this page for more information
http://www.cpearson.com/excel/events.htm


--
Regards Ron de Bruin
http://www.rondebruin.nl


"clippan" wrote in message ...
I have learned to do simple macros in Excel and how to combine them
with CTRL+a and so. Now I would like to have a worksheet with some
areas being erased at the opening of the file to make a clean start.
I can do it with a macro like Ctrl+a but how shall I do to have the
macro automatically run at the opening of the file, like the autostart
in Windows?

--
Many thanks in advance !
Clippan



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
Closing File Error jcliquidtension Excel Discussion (Misc queries) 4 October 20th 05 12:22 PM
Trouble opening an Excel file that contains macros JohnR Excel Worksheet Functions 1 March 8th 05 08:09 PM
Opening an Excel file Sheldon Zaklow Excel Discussion (Misc queries) 0 March 3rd 05 10:29 PM
Opening a file with code without a set file name jenkinspat Excel Discussion (Misc queries) 1 March 2nd 05 03:39 PM
opening file problem please help Steve Goodrich Excel Discussion (Misc queries) 2 March 1st 05 10:40 PM


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