OL97: How to Create a New Item Based on a Custom FormLast reviewed: February 27, 1998Article ID: Q165514 |
The information in this article applies to:
SUMMARYThis article describes how you can use Outlook 97 Visual Basic Scripting Edition to create a new item based on a custom form.
MORE INFORMATIONMicrosoft 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.aspWhen a form is published in Outlook 97, a message class name is used to identify the form. In VBScript, you can use this class name with the Add method of Outlook's Items collection to create a new item based on the published custom form. To obtain the message class of a custom form, open the custom form and click "Publish Form As" on the File menu. You will see the message class name in the Publish Form As dialog box, for example:
IPM.Contact.CustomContactThe following steps will enable you to use the message class name and VBScript to create another item or copy of the current form, by adding a command button and the attached VBScript to your custom form. To create the VBScript and command button follow these steps:
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. |