M
Mark1
Can anybody tell me how to get this to work? In other words, how do I
reference my procedure variables in a cell formula? Thanks!
Sub Marktest()
Set b = Cells.Find("Total", , xlValues)
Set c = Range("C5")
Range(b.Offset(-1, 2), c).Formula = _
"=sumproduct(($B5=Range(b.Offset(-7, 1), b.Offset(-5, 1)))*$C$1:$C$3)"
End Sub
reference my procedure variables in a cell formula? Thanks!
Sub Marktest()
Set b = Cells.Find("Total", , xlValues)
Set c = Range("C5")
Range(b.Offset(-1, 2), c).Formula = _
"=sumproduct(($B5=Range(b.Offset(-7, 1), b.Offset(-5, 1)))*$C$1:$C$3)"
End Sub