Assigning Hot Key to Form

R

Riverboat

I have created a form in Outlook 2003 SP3 that is stored in my Personal Forms
Library.

Is there any way that I can assign a hot key combination to open the form
from anywhere within Outlook to avoid the need to go through New > Chose Form
Personal Forms Library and Select from the list of forms therein?

Many thanks all

Kind regards

Peter
 
S

Sue Mosher [MVP-Outlook]

If you write a VBA macro to launch an instance of the form, you can add that
macro to the toolbar and then give it an Alt+ accelerator. 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 other ideas.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 
R

Riverboat

Many thanks Sue

Kind regards

Peter

Sue Mosher said:
If you write a VBA macro to launch an instance of the form, you can add that
macro to the toolbar and then give it an Alt+ accelerator. 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 other ideas.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top