While... Wend Loops : While « Language Basics « VBA / Excel / Access / Word






While... Wend Loops

 
Sub whileDemo()
    While Documents.Count < 10
        Documents.Add
    Wend
End Sub

 








Related examples in the same category