G
Guest
Hi
I have tried to delete rows that contain ******** in col no 3.
with below code. problem is that xl thinks it is wildcards and deletes
everything....
.. Solvable??
Worksheets("FRB").Select
With Application
.Calculation = xlManual
.MaxChange = 0.001
End With
Dim rng As Range
Columns(3).Replace What:="******** ", _
Replacement:="=na()", LookAt:=xlWhole, _
SearchOrder:=xlByRows, MatchCase:=False
On Error Resume Next
Set rng = Columns(3).SpecialCells(xlFormulas, xlErrors)
On Error GoTo 0
If Not rng Is Nothing Then
rng.EntireRow.delete
End If
With Application
.Calculation = xlAutomatic
.MaxChange = 0.001
End With
End Sub
I have tried to delete rows that contain ******** in col no 3.
with below code. problem is that xl thinks it is wildcards and deletes
everything....
.. Solvable??
Worksheets("FRB").Select
With Application
.Calculation = xlManual
.MaxChange = 0.001
End With
Dim rng As Range
Columns(3).Replace What:="******** ", _
Replacement:="=na()", LookAt:=xlWhole, _
SearchOrder:=xlByRows, MatchCase:=False
On Error Resume Next
Set rng = Columns(3).SpecialCells(xlFormulas, xlErrors)
On Error GoTo 0
If Not rng Is Nothing Then
rng.EntireRow.delete
End If
With Application
.Calculation = xlAutomatic
.MaxChange = 0.001
End With
End Sub