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

Expected 'Sub'

You created a Sub procedure, but terminated it with the End keyword instead of the End Sub statement. A Sub procedure must include a terminating End Sub statement.

To correct this error

  • Terminate your Sub procedure with the End Sub statement.

Community Additions

Show:
© 2015 Microsoft