Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35
Default Changing Sheet Name

Help.
I have a Macro that takes data from a Excel file which is saved automaticly
daily to the same location, however the sheet name changes every time. Is
there a way to make the macro select that sheet regardless of the name of the
sheet??

thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Changing Sheet Name

If it is the first sheet, you can refer is as index value 1

Worksheets(1).Activate

if the last sheet

worksheets(worksheets.count).Activate

--
Regards,
Tom Ogilvy

"Andym" wrote in message
...
Help.
I have a Macro that takes data from a Excel file which is saved

automaticly
daily to the same location, however the sheet name changes every time. Is
there a way to make the macro select that sheet regardless of the name of

the
sheet??

thanks



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
changing sheet size mmap hq New Users to Excel 4 July 8th 09 08:48 PM
Changing the name of a sheet Cole C. Excel Discussion (Misc queries) 1 April 21st 09 08:03 PM
changing tab from another sheet cell duckie Excel Worksheet Functions 6 November 14th 07 04:55 PM
Protect from changing sheet name Sloth Excel Discussion (Misc queries) 6 January 23rd 06 08:27 PM
changing sheet names Andy Healey Excel Programming 2 October 12th 03 04:43 PM


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