Moonbeam111
Board Regular
- Joined
- Sep 24, 2018
- Messages
- 88
- Office Version
- 365
- 2010
I'm trying to find the name in range("C21") , match it with one of the cells in the one of the cells in that list and offset from range("C21") again. But rfound keeps coming up as nothing so its exiting the sub. Is something wrong with my code? Please advise me.
VBA Code:
Dim rfound As Object
Set rfound = Sheets("Sheet1").Range("C21").Find(what:=Range("C133,C143,C153,C163,C173,C183"))
If rfound Is Nothing Then
Exit Sub
Else: rfound.Offset(5, 1) = rfound.Offset(5, 1) + 1
End If