Dark0Prince
Active Member
- Joined
- Feb 17, 2016
- Messages
- 433
Code:
Sub Button44_Click()
Dim rng As Range
Set rng = Range("B7:B50")
Set rngFound = rng.Find("ABQ")
If rngFound Is Nothing Then
MsgBox "NOTHING TO CLEAR!!!"
Else:
Cells(rng.Row, 7).ClearContents
Cells(rng.Row, 8).ClearContents
End If
End Sub
Here's the code I'm starting with, and I'm not sure how I can use this to clear the 7th and 8th column if abq is found in the B range.
It's only clearing B7 for some reason.
Last edited: