Try:
Sub del_Prepaid_Deact()
Dim myDate As Date, aDate, bottomL As Long, x As Integer, e As Long
'Rename Worksheet to "Generated and Todays Date"
myDate = Date + 7 - Weekday(Date)
aDate = Format(myDate, "dd.mm.yyyy")
Sheet1.Name = "Generated " & aDate
'/Rename Worksheet to "Generated and Todays Date"
' Remove "Prepaid Deactivations"
On Error Resume Next
Sheets("Generated " & aDate).Activate
bottomL = Sheets("Generated " & aDate).Range("A" & Rows.Count).End(xlUp).Row
For e = bottomL To 2 Step -1
If Cells(e, "Q").Value = "Deactivation" And Cells(e, "P").Value = "Prepaid" Then
Rows(e).Delete
End If
Next e Columns("A").SpecialCells(xlCellTypeBlanks).EntireRow.Delete
'/Remove "Prepaid Deactivations"
End Sub
Note: When Looping to delete rows you should delete from bottom to top.
Bookmarks