Hi
I had defined a name called "Name1 "
which refers to A1 : A500 in worksheet1
This is the code I am using
Dim str as string
str = "Name1"
Dim Range1 as Range
Range1 = Worksheets("sheet1").Range(str)
msgbox Range1.name
I expected to get Name1 as the result
Rather it is giving me a result Sheet1!A1:A500
How do I get Name1 as the output and not the range value
Please suggest
I had defined a name called "Name1 "
which refers to A1 : A500 in worksheet1
This is the code I am using
Dim str as string
str = "Name1"
Dim Range1 as Range
Range1 = Worksheets("sheet1").Range(str)
msgbox Range1.name
I expected to get Name1 as the result
Rather it is giving me a result Sheet1!A1:A500
How do I get Name1 as the output and not the range value
Please suggest