Open Organizational Form

  • Thread starter Thread starter PPL
  • Start date Start date
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
 
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.
 
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
 
Back
Top