ReferesTo
When you define a named range, you define two things.
1) The Name
2) The address (or a formula that defines the address).
or
A constant
The RefersTo part is #2.
--
HTH,
Barb Reinhardt
If this post was helpful to you, please click YES below.
"Joel" wrote:
Can somebody explain why ReferesTo works in column A and Not in Column B
LastRowA = .Range("A" & Rows.Count).End(xlUp).Row
Set NameRange = .Range("A1:A" & LastRowA)
NameStr = Mid(NameRange.Name.RefersTo, 2)
Set DateRange = .Range("B1:B" & LastRowA)
DateStr = Mid(DateRange.Name.RefersTo, 2)
|