Control what to copy and paste

Use the Outlook Object Browser in the Script Editor

  • 2 minutes to read

To view the Outlook object browser

  1. Click the tab Developer tools in the group Custom forms on Design a form.On the Developer tab, in the Custom forms group, click Design a shape.

Note: When the tab Developer tools does not appear, see Run in developer mode in Outlook for the tab developer to activate.grade If you do not see the Developer tab, see Run in Developer Mode in Outlook to activate the Developer tab. 2. In the dialog box, select Design a form select the form to be used with the Object Browser and click to opento open the form in Design mode Design shape dialog box, select the form that you would like to use the object browser with, and click Open to open the form in design mode.

  1. Click the tab Developer tools in the group form on Show codeto open the selected form in the script editor Developer tab, in the shape group, click View code to open the selected form in the Script Editor.

  2. In the Script Editor, click Object browser on the Script menu or press F2. In the Script Editor, click Object browser on the Script menu or press F2.

All available Outlook objects are listed in the Object Browser in the pane Classes All of the available Outlook objects are listed in the Classes pane of the object browser in alphabetical order.

To view the members of an object, select the object in the Classes pane. To view the members of an object, select the object in the Classes pane.The members of this object appear in alphabetical order in the Members of pane.The members of this object appear in alphabetical order in the Members of pane.The heading at the top of this pane will reflect the name of the object that you select.The heading at the top of this pane will reflect the name of the object that you select.For example, if you select the AppointmentItem object in the Classes pane, the heading of the Members of pane will appear as Members of AppointmentItemFor example, if you select the AppointmentItem object in the Classes pane, the heading of the Members of pane will appear as Members of AppointmentItem.

The details pane shows the definition of the selected member. This text is read-only and cannot be copied and pasted into the Script Editor.

To insert an item from the object browser into the Script Editor

  1. In the Script Editor, position your cursor at the location for insertion.

  2. Select the object you want in the pane Classes Select the desired object in the Classes pane.

  3. In the pane, select Elements of Select the desired member of this object in the Members of pane.

  4. click on Insert.Click Insert.

Note: The button Insert remains unavailable until an element of the object is selected.grade The Insert button remains unavailable until a member of the object is selected.

Support and feedback

Have questions or feedback about Office VBA or this documentation? See Office VBA Support and Feedback for help with ways to get support and provide feedback. Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.