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 and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Open Organizational Form



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 7th 09, 04:24 PM posted to microsoft.public.outlook.program_vba
PPL
external usenet poster
 
Posts: 3
Default Open Organizational Form

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


Ads
  #2  
Old June 8th 09, 02:05 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Open Organizational Form

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.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"PPL" wrote in message
...
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


  #3  
Old June 9th 09, 01:34 AM posted to microsoft.public.outlook.program_vba
PPL
external usenet poster
 
Posts: 3
Default Open Organizational Form

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



"Ken Slovak - [MVP - Outlook]" wrote in message
...
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.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"PPL" wrote in message
...
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




 




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
User cannot open custom Organizational Form teenzbutler Outlook - Using Forms 16 April 9th 08 06:41 PM
Remove a Form from Organizational Forms Library Jeff G Outlook - Using Forms 7 November 7th 07 03:23 AM
Shortcut to Organizational Form in the Menubar ?? Trinadh Varma Outlook - Using Forms 1 July 27th 07 11:46 AM
organizational forms vs form regions Nikolas Outlook - Using Forms 2 November 20th 06 04:26 PM
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 03:46 PM.


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.