OL2000: How to Programmatically Refer to Standard Fields (201077)



The information in this article applies to:

  • Microsoft Outlook 2000

This article was previously published under Q201077

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 by 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 Visual Basic Reference

In the Microsoft Outlook Visual Basic Reference file, Vbaoutl9.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
      Customizing an Outlook Form
        Outlook fields and equivalent properties
				

Method 2: Refer to the Properties List in Help

You can also navigate to the item type that corresponds to the type of form you work 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 answers to commonly asked questions about Microsoft Outlook 2000 solutions, refer to the following article in the Microsoft Knowledge Base:

146636 OL2000: Questions About Custom Forms and Outlook Solutions


Modification Type:MajorLast Reviewed:10/9/2003
Keywords:kbhowto kbprogramming KB201077