OL97: How to Update Existing Items to Use a New Custom FormLast reviewed: March 2, 1998Article ID: Q170301 |
The information in this article applies to:
SUMMARYThis article describes how you can update items in a Microsoft Outlook 97 folder so they use a custom form instead of the standard Outlook form.
MORE INFORMATIONThere are several situations in Outlook 97 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.NoteTo see the message class for an existing item, add the message class field as one of the columns in the current view. Follow these steps to add the message class to your view:
Changing the Message Class field of existing items requires that you use Visual Basic Scripting Edition (VBScript) code within 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:
METHOD 1Download 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 more information on obtaining the Omsgclas.exe file, including a link to the file, please see the following articlesin the Microsoft Knowledge Base:
Article-ID: Q169431 Title : OL97: Word 97 Document to Change Outlook Folder Message Class METHOD 2Microsoft 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 engineers 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 the Microsoft fee-based consulting line at (800) 936-5200. For more information about the support options available from Microsoft, please see the following page on the World Wide Web:
http://www.microsoft.com/support/supportnet/refguide/default.aspFollow 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 more information about creating solutions with Microsoft Outlook 97, please see the following articles in the Microsoft Knowledge Base:
Article-ID: Q166368 Title : OL97: How to Get Help Programming with Outlook Article-ID: Q170783 Title : OL97: Q&A: Questions about Customizing or Programming Outlook |
Additional query words: OutSol OutSol97
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |