this is my code:
For Each cell In Range("A1:A13")
If cell.Value = "Totals" Then
Else
Sheets(1).Range("A2:G4").Select
Selection.Copy
wb2.Activate
Sheets(1).Range("A2").Select
ActiveSheet.Paste
End If
Next cell
I wanted it to do nothing after Then
, but even if it finds the word 'Totals', it still runs the code after Else
. What I want is that if the word 'totals' is there in that range, then do nothing.