Search notes:

VBA statement: while … wend

while … wend is a looping statement.
option explicit

sub main() ' {

    dim i as integer
    i = 5

    while i < 10
       debug.print("i = " & i)
       i = i + 1
    wend

end sub ' }
Github repository about-VBA, path: /language/statements/while/while-wend.bas

See also

VBA statements

Index