Hi everybody,
I am trying to insert blank row based on two critieria and after searching I come up with the code below:
Range("A1").Select
Do Until ActiveCell.Value = Empty
Cells.Find(What:="BRO_CT" And "C02:Garnishment Filing Fee", After:=ActiveCell, LookIn:=xlValues, LookAt:= _
xlPart, SearchOrder:=xlByColumns, SearchDirection:=xlNext, MatchCase:= _
False).Activate
If ActiveCell.Offset(1, 0).Value = Empty Then
Exit Sub
End If
ActiveCell.Offset(1, 0).EntireRow.Insert
Loop
Range("A1").Select
The problem it doesn't work ,If I delete second condition :"C02:Garnishment Filing Fee" the code works , but if I added second condition it doesn't work . I need these two conditons to be met for a row to be inserted.
Please, help will be gratly appreciated.
Best Reagrds,
BorisGomel
I am trying to insert blank row based on two critieria and after searching I come up with the code below:
Range("A1").Select
Do Until ActiveCell.Value = Empty
Cells.Find(What:="BRO_CT" And "C02:Garnishment Filing Fee", After:=ActiveCell, LookIn:=xlValues, LookAt:= _
xlPart, SearchOrder:=xlByColumns, SearchDirection:=xlNext, MatchCase:= _
False).Activate
If ActiveCell.Offset(1, 0).Value = Empty Then
Exit Sub
End If
ActiveCell.Offset(1, 0).EntireRow.Insert
Loop
Range("A1").Select
The problem it doesn't work ,If I delete second condition :"C02:Garnishment Filing Fee" the code works , but if I added second condition it doesn't work . I need these two conditons to be met for a row to be inserted.
Please, help will be gratly appreciated.
Best Reagrds,
BorisGomel