LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Macro to run when sheet opens

Hi
do you mean the worksheet or the workbook? In both cases you need an
event procedure
worksheet: worbook event: workbook_sheetactivate
workbook: workbook event: workbook_open()

See: http://www.cpearson.com/excel/events.htm


--
Regards
Frank Kabel
Frankfurt, Germany


Rakesh wrote:
How can I get a macro to run automatically when a worksheet
containing that macro is opened?

Thanks.


 
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
DROP DOWN LIST WHEN SPREAD SHEET OPENS Dave Excel Discussion (Misc queries) 5 May 14th 10 02:33 AM
Macro to create date when sheet opens and then remain static when paankadu Excel Worksheet Functions 2 November 5th 09 01:24 AM
Excel file opens and opens and opens Wanna Learn Excel Discussion (Misc queries) 1 June 9th 09 11:03 PM
Query is lost when Excel s/sheet opens dlb Excel Discussion (Misc queries) 0 January 24th 07 07:53 PM
Choosing which sheet opens josephdmcc Excel Worksheet Functions 1 April 12th 06 09:34 PM


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