Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Expected 'End'

You created a construct, but did not properly terminate it. The following table lists the VBScript constructs that must end with an End statement.

Construct

Terminating Statement

Sub

End Sub

Function

End Function

If

End If

Class

End Class

With

End With

Select

End Select

To correct this error

  • Terminate a Sub procedure with an associated End Sub statement.

  • Terminate a Function procedure with an associated End Function statement.

  • Terminate an If statement with an associated End If statement.

  • Terminate a Class statement with an associated End Class statement.

  • Terminate a With statement with an associated End With statement.

  • Terminate a Select Statement with an associated End Select statement.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft. All rights reserved.