Ark68
Well-known Member
- Joined
- Mar 23, 2004
- Messages
- 4,538
- Office Version
- 365
- 2016
- Platform
- Windows
I use this code :
However, sometimes the value doesn't exist in the range to find, so there is an error.
How can I overcome this?
Rich (BB code):
Else
rTarget.Fill.ForeColor.RGB = RGB(255, 255, 255) 'ON to OFF
p1 = wshvar.Range("T3:T500").Find(What:=rTarget.Name).Address
wshvar.Cells.Range(p1).Delete xlUp
End If
However, sometimes the value doesn't exist in the range to find, so there is an error.
How can I overcome this?