All i want to do is to optimize my current delete row code. At this stage this step take to much time.
Dim miesiac2 As Integer '--->current month
miesiac2 = Range("b1").Value
Dim LastRow As Long
LastRow = [A65536].End(xlUp).Row
For i = LastRow To 1 Step -1
If Cells(i, 1) = miesiac2 Then Rows(i & ":" & i).EntireRow.Delete
Next i
So... If column A equals current month then EntireRow.Delete Any idea?
miesiac2. (b) It won't be noticeable, but you will get a small improvement by changingRows(i & ":" & i)toRows(i). (c) Have you setApplication.CalculationtoxlCalculationManual? AndApplication.ScreenUpdatingtoFalse?miesiac2as a specific range and then delete the range only once.