M
Mike Fogleman
I want to use a variable in a cell formula like this:
Dim myrng
myrng = Worksheets("Synopsis").Range("A" & Counter + 2)
Range("D1
" & RowCount - 1).Formula =
"=IF(AND(Totals!$F$1-Data!B1<7,A1=A2,myrng),1,0)"
Because of the " " around the formula, the value of myrng does not appear,
only the word.
TIA, Mike
Dim myrng
myrng = Worksheets("Synopsis").Range("A" & Counter + 2)
Range("D1

"=IF(AND(Totals!$F$1-Data!B1<7,A1=A2,myrng),1,0)"
Because of the " " around the formula, the value of myrng does not appear,
only the word.
TIA, Mike