Search DaTutorials:  
HOME
VB Script Tutorials
Introduction
Reference
Tutorials

Expected 'In'

You created a For Each…Next block, but did not include the In keyword in the first line. The following demonstrates the correct structure of a For Each…Next block.

For Each element In group
   [statements]
   [Exit For]
   [statements]
Next [element]

To correct this error

  • Make sure that the For Each…Next block includes all the necessary parts.

See Also

For Each...Next Statement | Do...Loop Statement | Exit Statement | For...Next Statement | While...Wend Statement


     Loans | Moneygram | Credit Counseling | Loans | eHarmony Promotional Code
Home     Link To Us     Ad With Us     Contact Us     Tell A Friend     Affiliates     Blog     MsOfficeHelp