PC Review


Reply
Thread Tools Rate Thread

Code Name of Worksheet in a Formula

 
 
SueDot
Guest
Posts: n/a
 
      10th Aug 2009
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
 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      11th Aug 2009
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 With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Worksheet Name in Code/Formula Joe Gieder Microsoft Excel Worksheet Functions 4 28th May 2008 07:58 PM
Code with formula interfering in worksheet change event Arnold Microsoft Excel Programming 2 26th Jan 2007 11:28 AM
Fill a column in a worksheet from a formula worksheet based on the date NadiaR Microsoft Excel Programming 4 15th Mar 2006 10:42 PM
Setting a formula with code in worksheet added KimberlyC Microsoft Excel Programming 10 3rd Jan 2005 09:46 PM
Worksheet.Calculate code no longer executes on worksheet launch? Arris Microsoft Excel Worksheet Functions 1 28th Jan 2004 02:17 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:15 AM.