View Single Post
  #2  
Old May 11th 06, 01:22 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Create button on toolbar for form

To create a new instance of a custom form programmatically, use the Add method on the target folder's Items collection:

Set newItem = targetFolder.Items.Add("IPM.Post.YourFormName")

You can use the code at http://www.outlookcode.com/d/code/getfolder.htm to walk the folder hierarchy and return the MAPIFolder corresponding to a given path string.

See http://www.outlookcode.com/d/launchform.htm for other ideas.


--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"BTH" wrote in message ...
Hello,

I made a form in the public folders so it is available for all users
internally.
What I wanna do now is create a button on a toolbar in outlook that triggers
that form.
The form Launcher is niet quite an option.

Structure is like this:
Public Folders\Mailformulieren\
There is a form called Belmemo.

Can anyone help me

Ads