Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MSDN Library

'loop' without 'do'

You created a Do loop, but did not properly establish the loop. Do loops begin with an associated Do 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

  • You may have attempted to delete a Do control structure without removing the Loop statement.

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

Community Additions

© 2015 Microsoft