This page has been archived and is no longer  being actively maintained.
Outlook Developer Home
Outlook Programmer's Library
 
Outlook Technologies
Outlook Forms
Languages
Samples
Other Technologies

 

Microsoft Outlook Custom Forms

For the current version of this page, click here.

Forms are representations to the user of data stored in Outlook folders. Every item that you open in Outlook uses a form to display information. 

The forms designer is built into all versions of Outlook. Open any Outlook item and choose Tools | Forms | Design This Form or  Tools | Design Outlook Form (Outlook 97) to start designing a new form using that item as a starting point. You must always base a custom form on an existing form. 

Forms can have VBScript code behind them to react to user actions -- validating data, synchronizing it with databases, creating new Outlook items, etc. To add code, once you're in form design, choose Form | View Code.

In an Exchange Server environment, custom forms are typically stored in the Organization Forms library, so that everyone has access to them. They can also be published directly to a folder. Personal forms are published either to a folder or to your Personal Forms library.

Overview | VBScript | Key Issues | Tools | Tips | Samples | Discussion | More Information

Overview

My book, Microsoft Outlook Programming: Jumpstart for Administrators, Developers, and Power includes detailed chapters on creating custom Outlook forms.

These references also provide a brief introduction to the forms creation process:

Microsoft Outlook 97 developers will want to download the Microsoft Outlook 97 Forms Help file. For Outlook 2000, see How to Install Help for Outlook 2000 Forms. In Outlook 2002, run the Olfm10.chm Help file, found in the \Program Files\Microsoft Office\Office10\1033 on U.S. English systems.

Back to Top

VBScript

Code behind Outlook forms uses VBScript, a slim, portable version of the Visual Basic programming language. 

To add or modify code, open the form in design mode by choosing Tools | Forms | Design a Form, then choose Form | View Code. You can use the Script | Event Handler command to add an item-level event handler procedure shell to the code window. See Syntax for Microsoft Outlook property and control values and events and Event Sequences in Outlook 97 for details on the key events that fire when the user adds data to an item created with the form.

Back to Top

Key Issues

Design issues
Outlook 2003 problems
Using formulas for initial values and validation
Publishing and sharing forms
Limitations
Outlook 2002 issues fixed in Service Pack 3:
Also see
Back to Top

Tools

You can enhance Outlook forms with custom ActiveX controls that do such things as pop up a calendar like the one built into Outlook.

Microsoft Exchange Server 5.5 Service Packs include the Outlook HTML Form Converter wizard to create Active Server Pages for Outlook Web Access (OWA) that correspond to Outlook forms. 

Outlook Custom Form Launcher Freeware component to launch a custom Outlook form from a button on the main toolbar. Also can launch Web URLs and any file. Register to get the ability to have multiple buttons.
Outlook Form Installer Installs an Outlook form into multiple folders.
Outlook View Control This free ActiveX control to display Outlook views in a folder home page, Outlook form or VB project is included with Outlook 2002 and available as a separate download for Outlook 2000.
Back to Top

Tips

To delete a published form, you can use the Forms Manager. Choose Tools | Options | Other | Advanced Options | Custom Forms | Manage Forms. Note that in Outlook 98 and Outlook 2000, this feature is not available in Internet Mail Only mode. You'll need to switch to Corporate/Workgroup mode at least temporarily or use code. See:

Set the icons for a custom form on the (Properties) page. Icons need to be 32x32, 16-color files. For the small icon, the image should be in the upper-left corner.

More tips:

Back to Top

Samples

Examining existing forms is one of the best ways to find out what you can do with Outlook forms. Many sample Outlook forms are available at these sites:
Back to Top

Discussion

Back to Top

More Information

Quirks, limitations, samples, etc. of Outlook forms: 

Additional Outlook forms references and resources:

How to articles in the MSKB:

Known problems from the MSKB:

   
© 2002-6 TurtleFlock, LLC
All right reserved.
About OutlookCode.com

Send comments to webmaster@outlookcode.com

Designed and Implemented by TerraLink USA 

FrontPage Integration
by RobsonDesignWorks

 
 
get Sue's code | forums | share your own code | registration