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

 

To launch a custom Outlook form

Once you develop and distribute a custom form, what's the best way to make it easy to launch? Probably the least convenient method is to require the user to go through the Tools | Forms | Choose Form dialog. Here are some alternatives, including third-party tools.

From a folder | From a Windows shortcut | From a hyperlink | From a macro | As a Default Form | From a Web page | Other Tools | More Information

From a folder

If you publish a custom form to a folder, then the form appears on the Action menu when you are looking at that folder.

For a Appointment, Contact, Journal, Task or Post form, you can make the custom form the default for a folder on the folder's Properties menu. The default  form launches when the user presses Ctrl+N or double-clicks in the folder view.

You cannot make a message form the default for a folder, because messages are designed to be sent, not posted. The workaround is to make a post form the default, and use this code on the post form to launch your custom form:

See OL2000 How to Set Any Form as Default for a Folder for more on this issue. Message forms need additional special treatment, because message items always save in Drafts; see Microsoft Outlook Message Forms.

We also have a custom Form Launcher form that provides this capability.

Back to Top

From a Windows shortcut

The syntax for launching a published custom form from a Windows shortcut is very simple:
"<path>\Outlook.exe" /c "IPM.Note.My Form"

where <path> represents the full path to your Outlook.exe file. (HINT: Use Start | Find to locate Outlook.exe, then drag it to the Windows desktop to create a shortcut. You can then modify this shortcut to add the /c switch and published form name.

If you didn't publish the form, but instead, saved it as an .oft Outlook template file (using File | Save As), then all you need is a shortcut to the .oft file.

You can add shortcuts like these to the Windows desktop or Programs menu or to the Office shortcut bar. Or, put them all in one system folder, then add a shortcut to that folder to the Outlook Bar.

Back to Top

From a hyperlink

Outlook 2000 and later versions allow you to create toolbar buttons as hyperlinks to Web URLs, but also to any system files, including an Outlook form, saved as a file:
  1. Choose File | Save As to save the form as an .oft Outlook template file.
  2. Choose View | Toolbars | Customize.
  3. Drag any button from the Commands tab of the Customize dialog to the toolbar. 
  4. Right-click the new button, and enter a new Name. If you include an ampersand (&), the letter following the ampersand is assigned as a hotkey for the button. You will be able to run the form simply by pressing Alt plus that key.
  5. Choose Assign Hyperlink | Open
  6. In the Assign Hyperlink dialog, select the .oft file
  7. Click OK, then Close to finish adding the hyperlink button.

Thanks to Stephen Monty of the Department of Agriculture, Fisheries and Forestry - Australia for this tip, which he shared on the outlook-users mailing list. Also see:

If the form has been published rather than saved as an .oft file, you can use one of these methods:

  • Create a hyperlink to a Windows shortcut, as described above
  • Add a button to run an Outlook VBA macro that launches the form.
  • Use our custom Form Launcher form to create a library of forms in a public folder, each capable of being launched from an Outlook link such as

<Outlook://Public Folders/All Public Folders/Forms/~Sales Contact>

Back to Top

From a macro

You can write a macro in Outlook VBA, then follow the above instructions for creating a toolbar button, dragging the macro from the Macros heading under Commands. See:
Back to Top

As a default form

Default forms are those that launch from the File | New menu. You can substitute a custom form for any of the default forms in Outlook 2000 or 2002. See:
Back to Top

From a web page

See:
Back to Top

Other tools

Form Launcher form Free sample custom Post form for all versions of Outlook to launch any form in any folder.
Items Command Bar Free sample Outlook 2000 COM add-in for launching any standard or custom forms, plus other Office documents.
Outlook Custom Form Launcher Freeware component to launch a custom Outlook form from a button on the main toolbar in any version of Outlook. Also can launch Web URLs and any file. Register to get the ability to have multiple buttons.
Back to Top

More Information

   
© 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