Guyz please, I need help in tweaking this code
Sub Find_CIB()
Dim rngRow As Range, rng2Cut As Range
Dim what As String
what = "CIB-OA" & "Scrubing Account"
Do
Set rng = ActiveSheet.UsedRange.Find(what)
If rng Is Nothing Then
Exit Do
Else
Rows(rng.Row).Delete
End If
Loop
End Sub
Rather than deleting the entire the cell, move the active cell three steps to the right and one step up. In other words, offset active cell (-1, 3)
Sub Find_CIB()
Dim rngRow As Range, rng2Cut As Range
Dim what As String
what = "CIB-OA" & "Scrubing Account"
Do
Set rng = ActiveSheet.UsedRange.Find(what)
If rng Is Nothing Then
Exit Do
Else
Rows(rng.Row).Delete
End If
Loop
End Sub
Rather than deleting the entire the cell, move the active cell three steps to the right and one step up. In other words, offset active cell (-1, 3)