Euro5
asked on
vba error if nothing found in list
The code works well, but if there is nothing to remove, I get an error.
Emergency here...can anyone help?
Emergency here...can anyone help?
Sub Remove_Intl()
Dim CalcMode As LongPtr
With Application
CalcMode = .Calculation
.Calculation = xlCalculationManual
.ScreenUpdating = False
End With
With Sheets("Data")
With Intersect(.UsedRange, .Range("AY:AY"))
.Replace What:="International", Replacement:="#N/A", LookAt:= _
xlPart, SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
.SpecialCells(xlCellTypeConstants, 16).EntireRow.Delete
End With
End With
With Application
.Calculation = xlCalculationAutomatic
.ScreenUpdating = True
End With
End Sub
Sub Remo
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you again!!
You're welcome.
Open in new window