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

Several requests:

1. How do I auto-run a macro that I created when I launch a spreadsheet?
2. How can I pause the macro so that I can select/open another file to run
the macro against?
3. After I open the file, how can I get the macro to change the worksheet
tab from the current name to "Sheet 1"?

Thanks

Ernie
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Selecting Sheets within a Macro

Hi
1. Put your code in the workbook_open event of your workbook or rename your
macro to auto_open()
2. Have a look at the wait method and workbooks.open in the vBA help
3. activesheet.name="sheet1"

"esersen" wrote:

Several requests:

1. How do I auto-run a macro that I created when I launch a spreadsheet?
2. How can I pause the macro so that I can select/open another file to run
the macro against?
3. After I open the file, how can I get the macro to change the worksheet
tab from the current name to "Sheet 1"?

Thanks

Ernie

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
Help with Macro in selecting sheets. Ann New Users to Excel 4 March 30th 07 01:56 PM
Selecting sheets Dr.Schwartz Excel Discussion (Misc queries) 4 July 14th 05 01:49 PM
selecting sheets kevin Excel Programming 4 November 27th 03 11:06 PM
Changing the value in multiple sheets without selecting those sheets herm Excel Programming 3 October 14th 03 03:50 PM
selecting sheets jacqui[_2_] Excel Programming 0 September 11th 03 02:46 PM


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