A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Shortcut to Organizational Form in the Menubar ??



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old July 27th 07, 10:48 AM posted to microsoft.public.outlook.program_forms
Trinadh Varma
external usenet poster
 
Posts: 1
Default Shortcut to Organizational Form in the Menubar ??

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  
Old July 27th 07, 11:46 AM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Shortcut to Organizational Form in the Menubar ??

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 04:16 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.