Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default Code Name of Worksheet in a Formula

Is there a way to reference cells on a worksheet with a formula using the
Code Name of the worksheet? (i.e. "Sheet10", as opposed to "Oct 2009")
--
Susan
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Code Name of Worksheet in a Formula

You may be able to do this using a User Defined Function--but I wouldn't.

I would imagine that you'd be passing strings to that function--and that means
that those formulas wouldn't update correctly if the codename were changed or
the worksheet was deleted.

And I would guess that if you were trying to retrieve a value from a cell on
that sheet, you'd have to pass it a string for the address, too.

And if you insert/delete rows or columns, then the formula wouldn't update to
point at the new location.

It would be kind of like replacing all your nicely behaved "normal" formulas
with a bunch of =indirect() formulas.

Is there a real reason you need to do this?

SueDot wrote:

Is there a way to reference cells on a worksheet with a formula using the
Code Name of the worksheet? (i.e. "Sheet10", as opposed to "Oct 2009")
--
Susan


--

Dave Peterson
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
Run VBA code only worksheet change, but don't trigger worksheet_change event based on what the code does ker_01 Excel Programming 6 October 3rd 08 09:45 PM
Using Worksheet Name in Code/Formula Joe Gieder Excel Worksheet Functions 4 May 28th 08 07:58 PM
Code with formula interfering in worksheet change event Arnold[_3_] Excel Programming 2 January 26th 07 11:28 AM
Create a newworksheet with VBA code and put VBA code in the new worksheet module ceshelman Excel Programming 4 June 15th 05 04:37 PM
Setting a formula with code in worksheet added KimberlyC Excel Programming 10 January 3rd 05 09:46 PM


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