#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default FormulaR1C1

Is it possible to mix relative ranges with other ranges?
Thanks

Sub DrillPipe1()
With Range("RngVrtDp1")
If ("RngVrtDp1") ("I3") Then
..FormulaR1C1 = "=(RC[-1])*(L9*0,01)"
Else
..FormulaR1C1 = "=(RC[-1])"
End If
End With
End Sub


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default FormulaR1C1

Haven't tried but don't think so. I usually use regular
..formula="=a1*b1"

--
Don Guillett
SalesAid Software

"Aksel Børve" wrote in message
...
Is it possible to mix relative ranges with other ranges?
Thanks

Sub DrillPipe1()
With Range("RngVrtDp1")
If ("RngVrtDp1") ("I3") Then
.FormulaR1C1 = "=(RC[-1])*(L9*0,01)"
Else
.FormulaR1C1 = "=(RC[-1])"
End If
End With
End Sub




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 595
Default FormulaR1C1

Aksel

No. Excel will put quotes around L9 and give you a #NAME? error. You can
use Application.ConvertFormula to covert an A1 style reference to R1C1,
though.


--
Dick Kusleika
Excel MVP
Daily Dose of Excel
www.dicks-blog.com

Aksel Børve wrote:
Is it possible to mix relative ranges with other ranges?
Thanks

Sub DrillPipe1()
With Range("RngVrtDp1")
If ("RngVrtDp1") ("I3") Then
.FormulaR1C1 = "=(RC[-1])*(L9*0,01)"
Else
.FormulaR1C1 = "=(RC[-1])"
End If
End With
End Sub



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
Need help with FORMULAR1C1 property John Wirt[_5_] Excel Programming 2 February 10th 05 03:46 AM
activecell.formular1c1 monika Excel Programming 0 April 29th 04 10:13 AM
FormulaR1C1 D.S.[_3_] Excel Programming 2 January 2nd 04 12:03 AM
FormulaR1C1 D.S.[_3_] Excel Programming 0 January 1st 04 09:12 PM
FormulaR1C1 aapp81[_22_] Excel Programming 3 December 3rd 03 10:47 PM


All times are GMT +1. The time now is 10:54 AM.

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"