Expand Minimize

'Sub Main' was not found in '<name>'

Sub Main is missing, or the wrong location has been specified for it.

Error ID: BC30420

To correct this error

  1. Supply the missing Sub Main statement, or if it exists, move it to the appropriate location in the code. For more information on Sub Main, see Main Procedure in Visual Basic.

  2. Specify the location of the project's startup object in the Startup form box of the Project Designer.

How to: Change the Startup Object for an Application
How to: Change the Startup Object for an Application (Visual Basic)
How to: Change the Startup Object for an Application (Visual Basic)

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft