I am beginning to divest myself of some bad programming habits I sort of picked up during my rookie days years ago. Towards this end, I am now questioning the use of ON ERROR GOTO TO 0 to follow and disable ON ERROR RESUME NEXT as in:
Sub test()
On Error Resume Next
Cells.SpecialCells(xlCellTypeFormulas, 23).Interior.color=vbyellow
On Error GoTo 0
End Sub
The above code (as in others I have tried) works perfectly with or WITHOUT "ON ERROR GOTO 0".
Now my question. Is ON ERROR GOTO TO 0 another of Visual Basic moribund lines of code which just clutter up space? Can't we do away with these vestiges?
David
Bookmarks