I use the following vba along with several other vbas (in sequence). Why does it often really get very slow?
Rich (BB code):
Sub Copy_Five_And_Add_Nine()
Dim lastRow As Long
Dim i As Long
lastRow = Cells(Rows.Count, "B").End(xlUp).Row
For i = 1 To lastRow
If Cells(i, 2).value = 5 Then
Cells(i, 26).Copy
Cells(Rows.Count, 26).End(xlUp).Offset(1, 0).PasteSpecial xlPasteValues
Cells(Rows.Count, 2).End(xlUp).Offset(1, 0).value = 9
End If
Next i
Application.CutCopyMode = False
End Sub