Originally Posted by
Kenneth Hobs
I would use Timer. Set t1 as a Private double type variable so that it can be retrieved.
e.g.[vba]Sub FillARange()
Dim r As Range, bRange As Range, t1 As Double
Cells.ClearContents
t1 = Timer
'SpeedOn
[A1] = "ColA"
[B1] = "ColB"
[C1] = "ColC"
Set bRange = Range("A2:C1000")
For Each r In bRange
If r.Column = 1 And r.Row Mod 2 = 0 Then
r.Value = "Delete"
Else: r.formula = "=Row()*Column()"
End If
Next r
'SpeedOff
MsgBox "Added " & bRange.Rows.Count & " rows and " & bRange.Count & " cells." & _
vbCrLf & "It took " & CStr(Timer - t1) & " seconds."
End Sub[/vba]