I posted below thbe help for the ADDRESS property. The defaul
settting is absolute (true) which puts the dollar sign into the formula
You need to to set the property to false. I'm not surre which parts o
the formula you want absolute and which parts you don't want absolute s
you may have to change the True/False as required.
Cells(s, 3).Formula = "=SUM(" & _
Sumrange.Address(RowAbsolute:=False,ColumnAbsolute:=False) & _
")-" & _
"SUMIF(" & _
ColA_Range.address(RowAbsolute:=False,ColumnAbsolute:=False) & _
",""CF Total""," & _
SumRange.Address(RowAbsolute:=False,ColumnAbsolute:=False) & ")"
expression.Address(RowAbsolute, ColumnAbsolute, ReferenceStyle
External, RelativeTo)
expression Required. An expression that returns one of the abov
objects.
RowAbsolute Optional Variant. True to return the row part of th
reference as an absolute reference. The default value is True.
ColumnAbsolute Optional Variant. True to return the column part o
the reference as an absolute reference. The default value is True.
ReferenceStyle Optional XlReferenceStyle.
XlReferenceStyle can be one of these XlReferenceStyle constants.
xlA1 default. Use xlA1 to return an A1-style reference.
xlR1C1. Use xlR1C1 to return an R1C1-style reference.
External Optional Variant. True to return an external reference
False to return a local reference. The default value is False.
RelativeTo Optional Variant. If RowAbsolute and ColumnAbsolute ar
False, and ReferenceStyle is xlR1C1, you must include a starting poin
for the relative reference. This argument is a Range object that define
the starting point.