Control Flow Keyword Summary

This page is specific to the Visual Basic for Applications (VBA) Language Reference for Office 2010.

Action

Keywords

Branch.

GoSub...Return, GoTo, On Error, On...GoSub, On...GoTo

Exit or pause the program.

DoEvents, End, Exit, Stop

Loop.

Do...Loop, For...Next, For Each...Next, While...Wend, With

Make decisions.

Choose, If...Then...Else, Select Case, Switch

Use procedures.

Call, Function, Property Get, Property Let, Property Set, Sub