Element
Description
Call statement
Calls an intrinsic or user -defined procedure or function, a method, or a routine in a dynamic link library
CallByName statement
Dynamically executes a class method, property let, or property set
Do...Loop statement
Repeatedly executes a block of code while or until a condition is true
Exit statement
Prematurely exits a code block
End statement
Marks the end of a block of code
For...Next statement
Iterates through a section of code a given number of times
For Each...Next statement
Iterates through a collection or array of objects or values, returning a reference to each of the members
GoTo statement
Passes program flow to a portion of code marked by a label
If...Then...Else statement
Defines a conditional block or blocks of code
Return statement
Transfers control from a function or procedure and returns a value from a function
Select Case statement
Executes one out of a series of code blocks based on the value of an expression
Stop statement
Suspends program execution
While...End While statement
Executes a block of code until a condition becomes False