Article ID: 170301 - Last Review: January 20, 2007 - Revision: 1.3 OL97: How to Update Existing Items to Use a New Custom FormThis article was previously published under Q170301 On This PageSUMMARY
This article describes how you can update items in a Microsoft Outlook
folder so they use a custom form instead of the standard Outlook form.
MORE INFORMATION
There are several situations in Outlook where you might want to change the form that is used for all the items in a folder, for example:
When you create and publish a custom form, the form is assigned a message class. This message class determines which form is associated with an item. The format of the name is usually IPM.<FolderType>.<FormName>, where <FolderType> is the type of folder (Contact, Task, and such.) and <FormName> is the name of the form. For example, if you create a new form named Revised and publish it to your contact folder, the message class is IPM.Contact.Revised. The following table lists the various names used for message classes: Item Default folder Default message class ------------- -------------- --------------------- Contact Contacts IPM.Contact Task Tasks IPM.Task Appointment Calendar IPM.Appointment Note Notes IPM.StickyNote Journal Entry Journal IPM.Activity Mail Inbox IPM.Note
Changing the message class field of existing items requires that you use Visual Basic Scripting Edition (VBScript) code in an Outlook form, or Visual Basic for Applications code from another program to automate Outlook and change the message class fields. The following are two methods of changing message class fields: Download the Omsgclas.exe UtilityDownload Omsgclas.exe, which contains a Word 97 document with a macro utility that displays a dialog box with options for changing Outlook message classes. The macro runs automatically when you open the document.For additional information about obtaining the Omsgclas.exe file, including a link to the file, click the article number below to view the article in the Microsoft Knowledge Base: 201089
(http://support.microsoft.com/kb/201089/EN-US/
)
OL2000: Word Document to Change Message Class of Outlook Items
Create a VBScript RoutineMicrosoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft support professionals can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs.If you have limited programming experience, you may want to contact a Microsoft Certified Partner or Microsoft Advisory Services. For more information, visit these Microsoft Web sites: Microsoft Certified Partners - https://partner.microsoft.com/global/30000104 (https://partner.microsoft.com/global/30000104) Microsoft Advisory Services - http://support.microsoft.com/gp/advisoryservice (http://support.microsoft.com/gp/advisoryservice) For more information about the support options that are available and about how to contact Microsoft, visit the following Microsoft Web site:http://support.microsoft.com/default.aspx?scid=fh;EN-US;CNTACTMS (http://support.microsoft.com/default.aspx?scid=fh;en-us;cntactms) Follow the steps below to create and run a VBScript routine that will change all the items in a folder to a specified form. This example assumes that you have published a new form called MyNewForm in the current folder. If you use a different title for your form, modify the form title used in the third line of code in the section "Enter the VBScript Code."
Create a New Item to Store the VBScript Code
Enter the VBScript Code
Run the VBScript Code
REFERENCESFor additional information about creating solutions with Microsoft Outlook, click the article numbers below
to view the articles in the Microsoft Knowledge Base:
166368
(http://support.microsoft.com/kb/166368/EN-US/
)
OL97: How to Get Help Programming with Outlook
170783
(http://support.microsoft.com/kb/170783/EN-US/
)
OL97: Q&A: Questions About Customizing or Programming Outlook
| Article Translations
|

Back to the top
