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