Main (statement)

Syntax

Sub Main()
End Sub

Description

Defines the subroutine where execution begins.

Example

Sub Main()
  MsgBox "This is the Main() subroutine and entry point."
End Sub

More information

M