On <keyword> From Microsoft Visual Basic Constants previous page next page On The On keyword is used in these contexts: On Error Statement On...GoSub Statement On...GoTo Statement previous page start next page