Outlook Application Menu
The Outlook Application menu in Code VBA provides structured access to the Outlook Application object and its related automation features. It helps you insert correct VBA code for mail, appointments, contacts, and other Outlook items without having to look up syntax or object references manually.
Item Type Submenus
At the top of the menu are submenus for each major Outlook item type. Each submenu provides ready-made code patterns for creating, opening, or manipulating that item type.
- MailItem - Work with email messages. Includes commands for creating, sending, replying, forwarding, and accessing message properties.
- AppointmentItem - Automate calendar appointments. Includes code for creating, modifying, and deleting appointments.
- ContactItem - Manage contacts. Provides snippets for adding, updating, and retrieving contact details.
- DocumentItem - Handle document-based messages or attachments.
- JournalItem - Access journal entries for tracking activities.
- NoteItem - Work with Outlook notes. Includes creation and formatting commands.
- PostItem - Automate posting messages to folders or public folders.
- HTML Body - Insert or modify the HTML content of mail items.
Reference, Methods, and Properties
Below the item submenus, the menu provides access to Reference tools and the Methods and Properties of the Outlook Application object. Selecting an item inserts the corresponding VBA statement directly into your module, ensuring correct syntax and object references.
- Reference - Insert or manage references to Outlook libraries.
- Methods - Access common Application methods such as
CreateItemorGetNamespace. - Properties - Insert code for Application properties like
ActiveExplorerorVersion.
Find
The Find command opens the Code VBA Find Procedure tool, which searches your project for procedures related to Outlook objects or containing a specific keyword. See: Find Procedure.
Session
The Session submenu provides access to the current Outlook session, including namespaces, accounts, and stores.
It helps you insert code for working with Application.Session and GetNamespace("MAPI").
Object-Returning Members
This section lists the main Application members that return objects. Selecting one inserts code that declares and sets a variable of the corresponding type, making it easy to work with Outlook objects through variables.
- Explorers - Returns the
Explorerscollection, representing all open Outlook windows. - Inspectors - Returns the
Inspectorscollection, representing all open item windows.
Example of generated code:
Dim insp As Inspector
Set insp = Application.ActiveInspector
Additional Object Members
Below these, the menu lists other Application members that return single objects or provide access to specialized Outlook features. Each has its own submenu for inserting code related to that object.
- Reminders - Access and manage reminders for appointments and tasks.
- TimeZones - Work with Outlook's time zone settings and conversions.
Together, these menu sections make the Outlook Application menu a powerful tool for inserting correct, context‑aware VBA code for Outlook automation.
Word Application Menu
The Word Application menu in Code VBA provides structured access to the Word Application object and its related automation features. It helps you insert correct VBA code for document operations, selections, and other Word objects without having to look up syntax or object references manually.
Most Used Word Application Features
At the top of the menu are the commands Word developers use most frequently. These insert ready-made code fragments for common document operations and global application settings.
- Open Document - Insert code to open an existing Word document.
- New Document - Insert code to create a new document.
Methods and Properties
The next group provides direct access to methods and properties of the Word Application object.
Selecting an item inserts the corresponding VBA statement, allowing you to quickly use Word's built-in functionality such as ActiveDocument, Version, or Path.
Find and Library
The Find command opens the Code VBA Find Procedure tool, which helps locate procedures related to Word objects or keywords. The Library entry provides access to reusable code snippets for Word automation, including document handling, formatting, and selection operations.
Object-Returning Members
This section lists the main Application members that return objects. Selecting one inserts code that declares and sets a variable of the corresponding type, making it easy to work with Word objects through variables.
- Documents - Returns the
Documentscollection. - Selection - Returns the
Selectionobject. - Windows - Returns the
Windowscollection.
Additional Object Members
Below these, the menu lists other Application members that return single objects or provide access to specialized Word features. Each has its own submenu for inserting code related to that object.
- AutoCorrect - Access and modify AutoCorrect entries.
- AutoCorrectEmail - Manage AutoCorrect settings specific to email content.
- Bibliography - Work with Word's bibliography and citation features.
- Browser - Control document navigation and browsing.
- CustomizationContext - Set or retrieve the context for customization (e.g., templates).
- EmailOptions - Configure email-related document options.
- FindKey - Access key bindings and shortcuts.
- MacroContainer - Work with macros stored in documents or templates.
- MailingLabel - Generate and manage mailing labels.
- MailMessage - Handle mail merge messages.
- NormalTemplate - Access the global Normal template.
- OMathAutoCorrect - Manage AutoCorrect entries for equations.
- Options - Access Word's global options and preferences.
- SynonymInfo - Retrieve synonyms for words programmatically.
- System - Access system-level properties and settings.
- UndoRecord - Manage undo operations programmatically.
- AddIns - Access and manage installed add-ins.
- AutoCaptions - Configure automatic captions for inserted objects.
Together, these menu sections make the Word Application menu a powerful tool for inserting correct, context‑aware VBA code for Word automation.