Thread: R1C1 to Range
View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Bob Phillips[_6_] Bob Phillips[_6_] is offline
external usenet poster
 
Posts: 11,272
Default R1C1 to Range

Jahson,

Worksheets("Control").Range("A1").Name = "Drp_Name"

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Jahson" wrote in message
...
How would I use an excel range with the following
statement instead of the R1C1 formula?

ActiveWorkbook.Names.Add Name:="Drp_Name",
RefersToR1C1:="=Control!R17C1"

For example

ActiveWorkbook.Names.Add Name:="Drp_Name",
RefersToR1C1:="=Control!Range("A1")

TIA