While condition [statements] End While
Parameters
Remarks
If condition is True, all statements are executed until the End While statement is encountered. Control then returns to the While statement and condition is again checked. If condition is still True, the process is repeated. If it is not True, execution resumes with the statement following the End While statement.
While...End While loops can be nested to any level. Each End While matches the most recent While.
Tip The Do...Loop statement provides a more structured and flexible way to perform looping.
Do...Loop Statement | Using Do...Loop Statements | With Statement