FormulaR1C1

A

Aksel Børve

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
 
D

Dick Kusleika

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top