Hello All
The code below looks in column "A" for a match "27009" and also "27003" it then copies these rows to sheet2 and then deletes the existing rows. Is there a way please to speed this up as there are thousands of records each day and at the moment this is slow
Sub Proforma()
Dim LR As Integer
Application.ScreenUpdating = False
LR = Range("A" & Rows.Count).End(xlUp).Row
Dim c As Range
For i = LR To 2 Step -1
Select Case Cells(i, 1)
Case "27009", "27003"
Cells(i, 1).EntireRow.Copy Sheets("Output").Cells(Rows.Count, "A").End(xlUp).Offset(1, 0)
Cells(i, 1).EntireRow.Delete
End Select
Next
Application.ScreenUpdating = True
End Sub
The code below looks in column "A" for a match "27009" and also "27003" it then copies these rows to sheet2 and then deletes the existing rows. Is there a way please to speed this up as there are thousands of records each day and at the moment this is slow
Sub Proforma()
Dim LR As Integer
Application.ScreenUpdating = False
LR = Range("A" & Rows.Count).End(xlUp).Row
Dim c As Range
For i = LR To 2 Step -1
Select Case Cells(i, 1)
Case "27009", "27003"
Cells(i, 1).EntireRow.Copy Sheets("Output").Cells(Rows.Count, "A").End(xlUp).Offset(1, 0)
Cells(i, 1).EntireRow.Delete
End Select
Next
Application.ScreenUpdating = True
End Sub