Hey all! I think it might have something to do with the subsequent calculating, but this code seems to be the culprit when it comes to making my Excel seemingly freeze:
Dim rng As Range
With ActiveSheet.Range("E12:E600")
Set rng = .Find(What:="Total", LookAt:=xlWhole, LookIn:=xlValues)
If Not rng Is Nothing Then
Do
rng.FormulaR1C1 = "=SUMIF(C15,""Total""&R[-2]C[7],C7)"
Set rng = .FindNext(rng)
Loop While Not rng Is Nothing
End If
End With
With ActiveSheet.Range("F12:F600")
Set rng = .Find(What:="Total", LookAt:=xlWhole, LookIn:=xlValues)
If Not rng Is Nothing Then
Do
rng.FormulaR1C1 = "=SUMIF(C15,""Total""&R[-2]C[6],C8)"
Set rng = .FindNext(rng)
Loop While Not rng Is Nothing
End If
End With
How do I make this not slow everything down to a crawl? Thanks in advance?
Dim rng As Range
With ActiveSheet.Range("E12:E600")
Set rng = .Find(What:="Total", LookAt:=xlWhole, LookIn:=xlValues)
If Not rng Is Nothing Then
Do
rng.FormulaR1C1 = "=SUMIF(C15,""Total""&R[-2]C[7],C7)"
Set rng = .FindNext(rng)
Loop While Not rng Is Nothing
End If
End With
With ActiveSheet.Range("F12:F600")
Set rng = .Find(What:="Total", LookAt:=xlWhole, LookIn:=xlValues)
If Not rng Is Nothing Then
Do
rng.FormulaR1C1 = "=SUMIF(C15,""Total""&R[-2]C[6],C8)"
Set rng = .FindNext(rng)
Loop While Not rng Is Nothing
End If
End With
How do I make this not slow everything down to a crawl? Thanks in advance?