Im trying to create a VBAformula that will fill excel with a formula. i've got this VBA code
Dim ws As Worksheet
Dim u As Long
Set ws = ActiveSheet
u = 9
Dim used As Range
Set used = ws.UsedRange
Dim lastRow As Integer
lastRow = used.Row + used.Rows.Count - 2
ws.Range("K4:K" & lastRow).FormulaR1C1 = "=(R4C2-R4C" & u & ")/10"
but in excel I get this formula: =($B$4-$I$4)/10
is it possible with this code to get the formula looking like this? =(B4-I4)/10 without the $ symbol?