Calculating subtotals
Try removing the SUBTOTAL functions from the worksheet and do them by
macro.
For example, instead of having the formula =SUBTOTAL(9,B2:B4) in cell
B5 and similar
in C5 and D5, use
Sub MySubtotals()
For iCol = 2 to 4
Range("B5") = Application.Sum("B2:B4)
End Sub
|