Skip to content

Latest commit

 

History

History
54 lines (30 loc) · 1.16 KB

Outlook.Application.Startup.md

File metadata and controls

54 lines (30 loc) · 1.16 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Application.Startup event (Outlook)
vbaol11.chm433
vbaol11.chm433
Outlook.Application.Startup
d4724d96-2572-b1e3-e202-0bfffb5cf7d5
06/08/2017
medium

Application.Startup event (Outlook)

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 macro can use this event procedure to initialize itself when Outlook starts.

Example

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

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

See also

Application Object

[!includeSupport and feedback]