Hi,
I would like to search a text in my spreadsheet and delete the row partially. If it doesn't find the text, I would like it to move on with the rest of the code. I keep getting the mismatch error here.
I also tried but doesn't work either:
Would appreciate the help here.
Thanks in advance
I would like to search a text in my spreadsheet and delete the row partially. If it doesn't find the text, I would like it to move on with the rest of the code. I keep getting the mismatch error here.
' Delete FV ONLY Row
Set rngfind = Cells.Find(What:="FV ONLY", After:=ActiveCell, LookIn:=xlValues).Activate
If Not rngfind Is Nothing Then
Range(ActiveCell, ActiveCell.Offset(0, 2)).Delete
Else
Resume Next
End If
Set rngfind = Cells.Find(What:="FV ONLY", After:=ActiveCell, LookIn:=xlValues).Activate
If Not rngfind Is Nothing Then
Range(ActiveCell, ActiveCell.Offset(0, 2)).Delete
Else
Resume Next
End If
I also tried but doesn't work either:
Do
Cells.Find(What:="FV ONLY", After:=ActiveCell, LookIn:=xlValues).Activate
Range(ActiveCell, ActiveCell.Offset(0, 2)).Delete
Loop Until Selection Is Nothing
On Error Resume Next
Cells.Find(What:="FV ONLY", After:=ActiveCell, LookIn:=xlValues).Activate
Range(ActiveCell, ActiveCell.Offset(0, 2)).Delete
Loop Until Selection Is Nothing
On Error Resume Next
Would appreciate the help here.
Thanks in advance