View Single Post
  #8   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson Dave Peterson is offline
external usenet poster
 
Posts: 35,218
Default Named Ranges

Try this manually...

Open your workbook and go to any of the sheets that doesn't have that name.
Then use the name dropdown to select that named range.

Notice that you'll go to the range that is a global/workbook level name.

If you go to the sheet that has the local/worksheet level name and do the same
thing, then you'll get the range on the same sheet.

So my general rule is to qualify the named range with the worksheet. An
ambiguity will be lost.

worksheets("Sheet1").range("NamedRange")
or
worksheets("Sheet2").range("NamedRange")

will refer to the range on the respective sheets--no matter what type of name
(global or local) the name actually is.



Jon, Furie wrote:

I currently have a named range on one worksheet that i can access via just the named range (i.e. range("namedrange")) through one userform but not through another. The second userform required a sheet name before every namedrange reference in my code.

Any thoughts on why one form is behaving differently than the other? Both forms are accessed from the same sheet (albeit different than the location of the namedrange).

thanks,
Jon

Dave Peterson wrote:

Since you can only have one global name with a particular name, you'll have
23-Sep-08

Since you can only have one global name with a particular name, you will have to
create a new name, then delete the old local name.

Henry wrote:

--

Dave Peterson

Previous Posts In This Thread:

On Tuesday, September 23, 2008 2:24 PM
Henr wrote:

How can I change a Name scope from local to Global?
How can I change a Name scope from local to Global?
I designed a worksheet and duplicated it, along with the Names. I have
edited the names but now those are scoped for that worksheet only. Name
Manager does not allow me to change the scope.

On Tuesday, September 23, 2008 2:39 PM
Dave Peterson wrote:

Since you can only have one global name with a particular name, you'll have
Since you can only have one global name with a particular name, you will have to
create a new name, then delete the old local name.

Henry wrote:

--

Dave Peterson

Submitted via EggHeadCafe - Software Developer Portal of Choice
WPF Report Engine, Part 2
http://www.eggheadcafe.com/tutorials...ne-part-2.aspx


--

Dave Peterson