The information in this article applies to:
SUMMARYIn some cases, Outlook does not allow you to set a particular form as the default form for a folder. This is commonly the case with mail messages and Microsoft Office document forms. This article describes how you can accomplish this using an intermediate form. MORE INFORMATION
Typically, Outlook folder types should match the type of items that are stored in the folder. For example, a Tasks folder should contain task items, a Notes folder should contain notes, and so on. The general approach in this article is to customize a form that can be set as the default for a particular folder. This type of form would typically be a Post form if you are working with a Microsoft Exchange public folder, or perhaps a Task form if you are working with one of your Task folders. You can use the Visual Basic Scripting Edition (VBScript) code in this form to start the form you want to use as the default for the folder. The VBScript code can close the default form without it being displayed. The end result is that the user will be able to start any type of form you wish. Before Implementing These InstructionsWhile this article provides a means to set any form as the default for a folder, you should take the following considerations into account before implementing this approach:
To Set a Non-standard Form as the DefaultYou can use the following example as a basis for setting a non-standard form as the default form for a folder. In this case, a Microsoft Word document form will be set as the default form for a public folder.Microsoft 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 Solution Provider or the Microsoft fee-based consulting line at (800) 936-5200. For more information about Microsoft Certified Solution Providers, please see the following page on the World Wide Web: http://www.microsoft.com/mcsp/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/overview/overview.asp Create and Publish the Form
Create and Publish the "Intermediate" Form
Set the Default Form for the Folder
NOTE: The Outlook object model does not allow you to use the Items.Add method to directly add an Office document item to a folder. Publish the Office form and then specify a custom Message Class when using the Items.Add method. REFERENCESFor additional information about how to use the Outlook object model to programmatically start new items, and how to use the Items.Add method, click the article number below to view the article in the Microsoft Knowledge Base: Q208520 OL2000: Programming Examples for Referencing Items and FoldersFor additional information about available resources and answers to commonly asked questions about Outlook solutions, click the article number below to view the article in the Microsoft Knowledge Base: Q146636 OL2000: Questions About Custom Forms and Outlook Solutions Additional query words: OutSol OutSol2000 vbscript
Keywords : |
Last Reviewed: January 4, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |