Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Sheet referencing in a macro

use sheets(1) or sheets(2) to select those two sheets, they will always
be the first two sheets in the workbook, or name them something, like
"Data 1" and "Data 2" and then refer to them that way, Sheets("Data
1").select

Sheets("Data 2").select



On Dec 18, 3:31 pm, LouP wrote:
I am trying to write a macro that always references the first two sheets and
I am adding new sheets daily to the workbook. I am naming the sheets with
the date they were added to the workbook. Is there a way to reference the
sheets that are always on the first two tabs? Remember that new tabs are
being added daily and I can't use Sheet1 as the newest sheet is given the
last number regardless of the tab order.

Lou


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
Sheet Referencing - autofilling sheet names Pat Excel Worksheet Functions 2 June 4th 09 03:50 AM
Sheet referencing in a macro Nick Hodge Excel Programming 2 December 19th 06 11:15 PM
Sheet Referencing? Benz Excel Programming 2 September 21st 06 08:08 PM
copy formula referencing sheet name to another sheet Tat Excel Worksheet Functions 1 June 26th 05 03:00 AM
referencing a sheet named in a cell then using data from that sheet gbeard Excel Worksheet Functions 4 April 15th 05 08:42 AM


All times are GMT +1. The time now is 10:33 AM.

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"