Sub delete2()
'
' delete2 Macro
' Macro recorded 10/29/2008 by Clayton Grove
'set up error checker
On Error Goto Delete2Error
Range("E3").Select
Cells.find(What:=Range("E3"), After:=ActiveCell, LookIn:=xlFormulas, LookAt _
:=xlWhole, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _
False, SearchFormat:=False).Activate
Selection.ClearContents
Range("E3").Select
Selection.ClearContents
'stops error checker and returns to normal
On Error goto 0
Exit Sub 'exits sub or Delete2Error will run anyway
'if error found, comes here
Delete2Error:
msgbox "There was an error"
End Sub
Use above and modify to your hearts content.
Bob's is better as it does more of what you want.
Bookmarks