OL2002: How to Programmatically Refer to Standard Fields (293159)



The information in this article applies to:

  • Microsoft Outlook 2002

This article was previously published under Q293159

SUMMARY

This article describes two ways to determine how to refer to a standard Outlook field using Visual Basic Scripting Edition (VBScript) or Visual Basic for Applications automation code.

MORE INFORMATION

In many cases, the Outlook standard fields are referenced by a different name using the Outlook object model. To see how the fields names in Outlook match up to the property names in the Outlook object model, use either of these two methods:

Method 1: Refer to the Table Listing in the Outlook Forms Help File

In the Microsoft Outlook Forms help file, Olfm10.chm, there is a section titled "Outlook fields and equivalent properties." In the Table of Contents for the Help file, it is located in:

    Working with Forms
      Working with Fields and Controls
        Outlook fields and equivalent properties
				

Method 2: Refer to the Properties List in Help

You can also use the Outlook Visual Basic Reference (Vbaol10.chm) to navigate to the item type that corresponds to the type of form you are working with. Examples include the objects ContactItem, MailItem, TaskItem, and such. On the Help pages that describe those types of items, you can click the Properties link at the top of the page to see the available property names that are valid for that item type.

REFERENCES

For additional information about available resources and answersto commonly asked questions about Microsoft Outlook solutions, click the article number below to view the article in the Microsoft Knowledge Base:

287530 OL2002: Questions About Custom Forms and Outlook Solutions


Modification Type:MinorLast Reviewed:3/1/2004
Keywords:kbhowto KB293159