Search DaTutorials:  
HOME
VB Script Tutorials
Introduction
Reference
Tutorials

Expected 'Wend'

You created a While…Wend loop, but did not properly terminate the loop. A While…Wend loop must be terminated with an associated Wend statement. The following demonstrates the correct structure of a While…Wend loop.

While condition
   Version [statements]
Wend

To correct this error

  • Make sure that the While…Wend loop includes all the necessary parts.

See Also

Looping Through Code | While...Wend Statement | Do...Loop Statement | For...Next Statement | For Each...Next Statement | Exit Statement


     Loan | Mortgage | Debt Consolidation | Magazine Subscriptions | Mortgage Calculator
Home     Link To Us     Ad With Us     Contact Us     Tell A Friend     Affiliates     Blog     MsOfficeHelp