Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook - Using Forms (http://www.outlookbanter.com/outlook-using-forms/)
-   -   Open form from toolbar button (http://www.outlookbanter.com/outlook-using-forms/76892-open-form-toolbar-button.html)

Kim August 13th 08 01:45 PM

Open form from toolbar button
 
Hi
Followed advice on MS website and use this code:
To open a custom form with a message class IPM.Appointment.Test that is
published in the Personal Forms Library, or the Organizational Forms Library,
change the code to:
Sub DisplayForm()
Set myFolder = Session.GetDefaultFolder(olFolderCalendar)
Set myItem = myFolder.Items.Add("IPM.courses")
myItem.Display
End Sub
The form is published to the personal forms library. Attached this to a
toolbar button. When I click the button I get a default blank email message
form.
This code is descrinbed by MS as being for a personal forms library.
Where hav I gone wrong.
Thanks

Outlook 2003 on exchange server


Kim August 13th 08 04:52 PM

Open form from toolbar button
 
Sorted - I added "Appointment" in the message class
LIKE THE INSTRUCTIONS TOLD ME. doh!!!

"kim" wrote:

Hi
Followed advice on MS website and use this code:
To open a custom form with a message class IPM.Appointment.Test that is
published in the Personal Forms Library, or the Organizational Forms Library,
change the code to:
Sub DisplayForm()
Set myFolder = Session.GetDefaultFolder(olFolderCalendar)
Set myItem = myFolder.Items.Add("IPM.courses")
myItem.Display
End Sub
The form is published to the personal forms library. Attached this to a
toolbar button. When I click the button I get a default blank email message
form.
This code is descrinbed by MS as being for a personal forms library.
Where hav I gone wrong.
Thanks

Outlook 2003 on exchange server



All times are GMT +1. The time now is 09:00 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com