![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
Hello all,
We created and published a custom form to the Exchange organizational forms library. We want to open that custom form from a shortcut in the menubar. We were only able put a shortcut to the choose form dialog. Is there a programmatic approach to open the custom organizational form without opening the choose form dialog? Thanks in advance. |
#2
|
|||
|
|||
![]()
In Outlook add-in, 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") If it's a message form, use the Drafts folder as the target. If the target is a default folder, you can use the Namespace.GetDefaultFolder method to return it as a MAPIFolder object. To create an item in another person's mailbox, use Namespace.GetSharedDefaultFolder to get the MAPIFolder Otherwise, 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/article.aspx?id=56 for tools and other ideas. -- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "Trinadh Varma" Trinadh wrote in message ... Hello all, We created and published a custom form to the Exchange organizational forms library. We want to open that custom form from a shortcut in the menubar. We were only able put a shortcut to the choose form dialog. Is there a programmatic approach to open the custom organizational form without opening the choose form dialog? Thanks in advance. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Remove a Form from Organizational Forms Library | Jeff G | Outlook - Using Forms | 7 | November 7th 07 03:23 AM |
How to deploy custom form to Organizational Forms Library? | Piyush Gupta | Add-ins for Outlook | 1 | February 13th 07 03:21 PM |
organizational forms vs form regions | Nikolas | Outlook - Using Forms | 2 | November 20th 06 04:26 PM |
A problem to load a custom form from the Organizational Forms library | David Elbaz | Outlook - Using Forms | 1 | February 26th 06 09:50 AM |
Can't publish new form to Organizational Forms Library | Andrew Vital | Outlook and VBA | 4 | January 20th 06 04:42 PM |