MarkCBB
Active Member
- Joined
- Apr 12, 2010
- Messages
- 497
Hi there,
I am using some code (Got from VoG). that deletes errors, but Now I have found that sometime the data will not contain errors. Is there an Error handler I can use to bypass the error so that the Code will continue to run> here is the code that I am currently using.
I am using some code (Got from VoG). that deletes errors, but Now I have found that sometime the data will not contain errors. Is there an Error handler I can use to bypass the error so that the Code will continue to run> here is the code that I am currently using.
Code:
Range("A2").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Offset(, 18).Select
Selection.FormulaR1C1 = "=IF(ISNUMBER(RC[-8])=TRUE,"""",NA())"
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues
Application.CutCopyMode = False
Columns("S").SpecialCells(xlCellTypeConstants, 16).EntireRow.Delete