Aracılığıyla paylaş


'End Sub' must be preceded by a matching 'Sub'

An End Sub statement appears in your code with no matching Sub procedure definition preceding it.

Error ID: BC30429

To correct this error

  • Remove the End Sub statement if it is redundant.

  • Supply the missing Sub procedure if one is missing.

  • Move the End Sub to the appropriate place in the code.

See Also

Concepts

Sub Procedures

Reference

End (Visual Basic)