Open Organizational Form

P

PPL

Hi,
Using VBA inWord, I'm trying to access an Outlook from that is located in
the Organizational Forms Library.
I'm reasonably Ok with VBA in Word. I'm able to create a new Outlook 2003
message item and work with it. Adding recipients, subject body etc. - but
doing the same thing using a form is defeating me.
Does any one have the code to open a form please?

TIA
Phil
 
K

Ken Slovak - [MVP - Outlook]

Use the ItemAdd() method of the Items collection of a folder of that form
type to do that. However, unless the form is already published (say Org.
Forms Library) and you belong to that domain, the form will not open.
 
P

PPL

Thanks Ken,
The following works perfectly:

Sub Open_An_Incident_Form()
'To Open a customized message form Titled "Incident" that has been
published in the Organizational Forms Library

Set myFolder = Session.GetDefaultFolder(olFolderInbox)
Set myItem = myFolder.Items.Add("IPM.Note.Incident")
myItem.Display

End Sub

Thanks again
 

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