Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default R1C1 to Range

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 535
Default R1C1 to Range

Hi Jahson,

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"


ActiveWorkbook.Worksheets("Control").Range("A1").N ame="Drp_Name"

Regards,

Jan Karel Pieterse
Excel MVP
www.jkp-ads.com

  #3   Report Post  
Posted to microsoft.public.excel.programming
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



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default R1C1 to Range

ActiveWorkbook.Names.Add Name:="Drp_Name", _
RefersTo:="=Control!$A$1"

As another example.

--
Regards,
Tom Ogilvy


"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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Range selection with R1C1 Adam1 Chicago Excel Discussion (Misc queries) 6 November 8th 07 04:02 PM
help on Converting R1C1 to A1 and A1 to R1C1..tia sa2 temp Excel Discussion (Misc queries) 3 September 13th 07 08:31 AM
help on Converting R1C1 to A1 and A1 to R1C1..tia sa2 temp Excel Worksheet Functions 3 September 13th 07 08:31 AM
R1C1 Arne Hegefors Excel Discussion (Misc queries) 1 August 18th 06 10:11 AM
Using Range with R1C1 notation in a macro J Excel Programming 1 January 23rd 04 04:46 AM


All times are GMT +1. The time now is 01:34 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"