Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Expected 'While' or 'Until'

You created a Do loop, but did not include the associated While or Until keywords. The test condition of a Do loop requires either a While or an Until keyword in the test condition statement. The following demonstrates the correct structure of a Do loop.

                      Do [{While | Until} condition]
   [Exit Do]

Or, you can use this syntax:

   [Exit Do]
Loop [{While | Until} condition]

To correct this error

  • Make sure that the Do loop includes all the necessary parts.

Community Additions

© 2015 Microsoft