hi,
Trying to run a simple macro
The macro works but it takes 3-4 minutes to perform the operation
Immediately upon running the macro a black screen opens and a message that Excel is not responding
Asks for a recommendation on how to make the Excel respond and the running time be short
Thanks in advance
the macro:
Application.ScreenUpdating = False
Application.Calculation = xlManual
LastRow = 500 'have 500 rows in the data
For i = 1 To LastRow 'loop through each row and check for required criteria
'To hide all the rows with the Even Number in Column A
If IsNumeric(Range("A" & i)) = True Then
If Range("A" & i) Mod 2 = 0 Then Rows(i).EntireRow.Hidden = True
End If
Next
Bookmarks