Select the product you need help with
- Internet Explorer
- Windows Phone
- More products
How to set any form as the default form for a folder in Outlook 2000
Article ID: 249199 - View products that this article applies to.
This article was previously published under Q249199
For a Microsoft Outlook 97 version of this article, see 266331
For a Microsoft Outlook 98 version of this article, see 266329
In some cases, you cannot set a particular form as the default form for a folder when you use Outlook. This commonly happens when you try to use either an e-mail message form or a Microsoft Office document form as the default form for a folder. This article describes how to set a particular form as the default form for a folder by using an intermediate form.
Typically, Outlook folder types should contain the same type of items that are stored in that folder. For example, a Tasks folder should contain task items, a Notes folder should contain note items, and so on.
In many cases, this consistency is enforced by Outlook because you cannot set a default form for a folder unless the form type matches the folder type. This also means that you cannot set other types of forms, such as Office document forms, as the default form for a folder.
If you try to set a non-standard form as the default form for a folder by changing the When posting to this folder, use setting on the General tab in the folder Properties dialog box, you may receive the following error message:
The following sections in this article describe how to customize a form that you can set as the default form for a particular folder. This type of form is typically a Post form if you are working with a Microsoft Exchange public folder, or a Task form if you are working with one of your Task folders. When you use the sample Visual Basic Scripting Edition (VBScript) code for this form, you can start the form that you want to use as the default form for the folder, you can close the default form before it is displayed, and you can start any type of form that you want.
You cannot create an item of this type in this folder.
Before You Implement These InstructionsWhile this article provides the steps to set any form as the default form for a folder, Microsoft recommends that you consider the following suggestions before you implement this approach:
To Set a Non-Standard Form as the Default Form in a FolderYou can use the following example as a basis for setting a non-standard form as the default form for a folder. In this example, an Office document form that is based on Word is set as the default form for a public folder.
How to Create and Publish the FormMicrosoft 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
Microsoft Advisory Services - 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)To create, and then publish a form:
How to Create and Publish the "Intermediate" Form
How to 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. You must publish the Office document form that is based on Word, and then specify a custom Message Class when you use the Items.Add method.
For 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:
208520For additional information about available resources and answersto commonly asked questions about Outlook solutions, click the article number below to view the article in the Microsoft Knowledge Base:
(http://support.microsoft.com/kb/208520/EN-US/ )OL2000: Programming Examples for Referencing Items and Folders
(http://support.microsoft.com/kb/146636/EN-US/ )OL2000: Questions About Custom Forms and Outlook Solutions