ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Dynamic Named Ranges Viewing in Name Box (https://www.excelbanter.com/excel-worksheet-functions/109178-dynamic-named-ranges-viewing-name-box.html)

dakotasteve

Dynamic Named Ranges Viewing in Name Box
 
I just learning to set up and use dynamic named ranges, unfortunately when I
set them up using the InsertNameDefine method (giving the range a name in
the Names in Workbook box type), I noticed that the range name I established
doesn't appear in the standard name box immediately to the left of the
formula bar. This makes it difficult to confirm the range is correct. Am I
right about this fact? Is there any way around this so that I can visually
look at my range like I can when I set up a range name the old fashioned way?
Thanks everyone!
DakotaSteve

Bob Phillips

Dynamic Named Ranges Viewing in Name Box
 
You are correct. Being dynamic means that it won't necessarily be the same
range at all times, so Excel doesn't store the details of the range.

You could view it by typing

=myRange

in the formula bar, and the range will be highlighted.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"dakotasteve" wrote in message
...
I just learning to set up and use dynamic named ranges, unfortunately when

I
set them up using the InsertNameDefine method (giving the range a name

in
the Names in Workbook box type), I noticed that the range name I

established
doesn't appear in the standard name box immediately to the left of the
formula bar. This makes it difficult to confirm the range is correct. Am

I
right about this fact? Is there any way around this so that I can

visually
look at my range like I can when I set up a range name the old fashioned

way?
Thanks everyone!
DakotaSteve




Bob Umlas, Excel MVP

Dynamic Named Ranges Viewing in Name Box
 
You can verify it by using F5 (Go To) and typing in the dynamic range name
and ensuring it references the right range. Or, inside the
Insert/Name/Define, when you click on the name, you'll see the range
highlighted by the border when you then click in the Refers-to box.

"dakotasteve" wrote:

I just learning to set up and use dynamic named ranges, unfortunately when I
set them up using the InsertNameDefine method (giving the range a name in
the Names in Workbook box type), I noticed that the range name I established
doesn't appear in the standard name box immediately to the left of the
formula bar. This makes it difficult to confirm the range is correct. Am I
right about this fact? Is there any way around this so that I can visually
look at my range like I can when I set up a range name the old fashioned way?
Thanks everyone!
DakotaSteve


JMB

Dynamic Named Ranges Viewing in Name Box
 
I generally use a vba function to show me the dynamic named range addresses.

Function rngAddress(rng As Range) As String
rngAddress = Replace(rng.Address(True, True, xlA1, True), _
"[" & ThisWorkbook.Name & "]", "", 1, 1, vbTextCompare)
End Function

Copy into a vba module. Then enter
=rngaddress(YourRangeName)
in a cell somewhere on a worksheet.


"dakotasteve" wrote:

I just learning to set up and use dynamic named ranges, unfortunately when I
set them up using the InsertNameDefine method (giving the range a name in
the Names in Workbook box type), I noticed that the range name I established
doesn't appear in the standard name box immediately to the left of the
formula bar. This makes it difficult to confirm the range is correct. Am I
right about this fact? Is there any way around this so that I can visually
look at my range like I can when I set up a range name the old fashioned way?
Thanks everyone!
DakotaSteve


dakotasteve

Dynamic Named Ranges Viewing in Name Box
 
Thanks Bob,
this is a great solution! I appreciate your help!
steve
--
DakotaSteve


"Bob Umlas, Excel MVP" wrote:

You can verify it by using F5 (Go To) and typing in the dynamic range name
and ensuring it references the right range. Or, inside the
Insert/Name/Define, when you click on the name, you'll see the range
highlighted by the border when you then click in the Refers-to box.

"dakotasteve" wrote:

I just learning to set up and use dynamic named ranges, unfortunately when I
set them up using the InsertNameDefine method (giving the range a name in
the Names in Workbook box type), I noticed that the range name I established
doesn't appear in the standard name box immediately to the left of the
formula bar. This makes it difficult to confirm the range is correct. Am I
right about this fact? Is there any way around this so that I can visually
look at my range like I can when I set up a range name the old fashioned way?
Thanks everyone!
DakotaSteve



All times are GMT +1. The time now is 10:17 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com