Export (0) Print
Expand All

Application.Startup Event

Office 2007
Occurs when Microsoft Outlook is starting, but after all add-in programs have been loaded.

Syntax

expression.Startup

expression   A variable that represents an Application object.

Remarks

This event is not available in Microsoft Visual Basic Scripting Edition (VBScript).

An Outlook Visual Basic for Applications (VBA) macro can use this event procedure to initialize itself when Outlook starts.

Example

This Microsoft Outlook Visual Basic for Applications example displays a welcome message to the user and maximizes the Outlook explorer window when Outlook starts.

Visual Basic for Applications
Private Sub Application_Startup()
	MsgBox "Welcome, " & Application.GetNamespace("MAPI").CurrentUser
	Application.ActiveExplorer.WindowState = olMaximized
End Sub



Community Additions

ADD
Show:
© 2014 Microsoft