Skip to main content

Control flow keyword summary

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

Leave a comment

Your email address will not be published. Required fields are marked *

Format your code: <pre><code class="language-vba">place your code here</code></pre>