LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 46
Default Multiple instances of a named range, not in the list

I inherited a spreadsheet that I need to clean up. It has a ton of
named ranges with spurious references. I wrote this code so I could
get a look at all the named ranges- it generates a list on a blank
tab:

Sub ShowRanges()
Dim NRange As Name

For Each NRange In Names
ActiveCell.Value = NRange.Name
ActiveCell.Offset(0, 1).Value = "'" & NRange.RefersTo
ActiveCell.Offset(1, 0).Select
Next NRange

End Sub

There are numerous cases where a named range shows up several times,
like this:
Sheet1!cccc
Sheet2!cccc
Sheet3!cccc
cccc
.... all with the same "RefersTo" range.

The named range list does not even show an entry for "cccc". The
RefersTo is
={"'Country'!$E$21:$W$45","'Country'!$E$21:$W$45 "}
but there is no tab labeled Country in the spreadsheet (I checked for
Hidden and VeryHidden tabs). When I delete "cccc" via code, the
entries specific to tabs remain in the list.

What do these entries represent?

Thanks~
Dave O

 
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
same named range on multiple worksheets? Philip Reece-Heal Excel Discussion (Misc queries) 4 June 1st 06 11:37 PM
Range matching multiple named Ranges ben simpson Excel Discussion (Misc queries) 0 March 15th 06 06:45 PM
Dynamic named range across multiple sheets babycody Excel Discussion (Misc queries) 3 July 24th 05 06:03 AM
How can I use a named range for "pick from drop-down list"? InstantZen Excel Discussion (Misc queries) 7 May 24th 05 12:51 AM
Extracting/look up data from a list and select multiple instances Candice H. Excel Worksheet Functions 4 April 29th 05 04:38 PM


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