LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default Named ranges

From a previous post it's my understanding that you can have the same name but on different worksheets. You reference the particular named range by prefacing
it with the sheet name i.e. Sheet1!MyNamedRange. I'm a newbie to Excel VBA so don't take my absolute word for this...hopefully another will chime in about
this.

If you are wanting to have multiple named ranges on one sheet with the same name, well, that's simply a bad programming practice that will lead to errors and
confusion...particularly for anyone who has to take over what you've done i.e. you get hit by a Budwieser delivery truck and are laid up in the hospital for a
month ;-)

Toby Erkson
Oregon, USA

On Tue, 20 Apr 2004 07:16:03 -0700, "Shawn" wrote:

Hi

Hi

I just noticed something that was very strange and I need to find out whether or not this is expected. It looks like multiple named ranges with exactly the same name can exist in one workbook. This means that different cells are referenced at different situations if this named range is used in formulas. My understanding was that range names have to be unique within a workbook. Which behaviour is expected?

In addition, if you look through the Insert|Name|Define menu option only one reference shows for a particular duplicated named range.

This may sound like an observation that is not very important but it is very important for what I'm attempting to do.

Thanks a lot

Shawn


 
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
named ranges Carol Ann Excel Worksheet Functions 4 February 4th 08 05:20 PM
Named Ranges Epinn Excel Worksheet Functions 23 October 16th 06 07:27 AM
Max # of named ranges leaftye - ExcelForums.com Excel Discussion (Misc queries) 1 July 14th 05 07:47 PM
Like 123, allow named ranges, and print named ranges WP Excel Discussion (Misc queries) 1 April 8th 05 06:07 PM
Named ranges Ron de Bruin Excel Programming 1 April 20th 04 03:56 PM


All times are GMT +1. The time now is 08:52 PM.

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"