I am trying to store a named range like that
Dim sValue As String
sValue = ThisWorkbook.Names("MyRange").Value
I got the range address instead of the values in the named range. What I am trying to do exactly is the following Suppose the named range is "MyRange" and it is for A1:C4 In a cell, if we typed equal sign and typed "MyRange" and then pressed F9, we got the values as array like that
{"Head1","Head2","Head3";1,2,3;4,5,6;7,8,9}
How to store that in variable string?
Dim sValue As VariantsValue = ThisWorkbook.Names("MyRange").RefersToRange.Value