Some Basic Forms Questions

T

Thomas M.

Outlook 2003

I have a simple form stored in my Personal Forms library. The form is a
customization of the Outlook's built-in Task form. I added a tab with one
data field. If I store the form in Outlook Folders it will appear on the
Actions menu. Is there any way to get the form to appear on the New
drop-down list under a name like My Task Form (so as not to conflict with
the built-in Task form that also appears on that menu)?

Also, in Outlook Folders there are two test forms that I would like to
delete, but the Delete button is grayed out, and I can't seem to figure out
how to delete them any other way. Is there a way to delete my two test
forms?

Thanks for any information that you may be able to share.

--Tom
 
S

Sue Mosher [MVP-Outlook]

You can write a VBA macro to launch the form and then put that macro on any toolbar or menu. 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.

For other form basics, including how to remove forms manually and programmatically, see http://www.outlookcode.com/article.aspx?ID=35

FYI, there is a newsgroup specifically for Outlook forms issues "down the hall" at microsoft.public.outlook.program_forms or, via web interface, at http://www.microsoft.com/office/com...spx?dg=microsoft.public.outlook.program_forms
 
T

Thomas M.

Thanks for the information. I will move the thread to the forms group.

--Tom

You can write a VBA macro to launch the form and then put that macro on any
toolbar or menu. 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.

For other form basics, including how to remove forms manually and
programmatically, see http://www.outlookcode.com/article.aspx?ID=35

FYI, there is a newsgroup specifically for Outlook forms issues "down the
hall" at microsoft.public.outlook.program_forms or, via web interface, at
http://www.microsoft.com/office/com...spx?dg=microsoft.public.outlook.program_forms
 

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

Similar Threads


Top