共用方式為


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

Concepts

Looping Through Code

Reference

While...Wend Statement

Do...Loop Statement

For...Next Statement

For Each...Next Statement

Exit Statement