9.0

260
Example
Sub Main
Debug
.Print WeekdayName(1) 'Sunday
Debug
.Print WeekdayName(Weekday(Now))
End
Sub
While Statement
Syntax
While condexpr
statement
s
Wend
Group
Flow Control
Description
Execute statements while condexpr is True.
See Also: Do, For, For Each, Exit While.
Example
Sub Main
I = 2
While I < 10
I = I*2
Wend
Debug
.Print I ' 16
End
Sub
With Statement
Syntax
With objexpr
statement
s
End
With
Group
Object
Description
Method and property references may be abbreviated inside a With block. Use .method or .property to access the
object specified by the With objexpr
.