I have the following code - where I am trying to enter a sum of the cells above formula wherever there is a blank in column J. It keeps failing on the second to last line of the code - as it doesn't seem to recognise the the sum(above) formula - any ideas - it may be that this function isn't supported in Excel 2000 - if not are there any other ways to achieve this?
Dim MyRangesum As Range, DelRangesum As Range, Fsum As Range
Dim MatchStringsum As String, SearchColumnsum As String, ActiveColumnsum As String
Dim FirstAddresssum As String, NullChecksum As String
Dim AFsum
Set MyRangesum = Columns("J")
Set Fsum = MyRangesum.Find(What:="", After:=MyRangesum.Cells(1), LookIn:=xlValues, Lookat:=xlPart)
If Not Fsum Is Nothing Then
Set DelRangesum = Fsum
FirstAddresssum = Fsum.Address
Do
Set Fsum = MyRangesum.FindNext(Fsum)
Set DelRangesum = Union(DelRangesum, Fsum)
Loop While FirstAddresssum <> Fsum.Address
End If
'If there are valid matches then insert the rows
If Not DelRangesum Is Nothing Then DelRangesum.ActiveCell.Formula Formula:="=Sum(above)"
Application.ScreenUpdating = True