Open form from toolbar button

K

kim

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
 
K

kim

Sorted - I added "Appointment" in the message class
LIKE THE INSTRUCTIONS TOLD ME. doh!!!
 

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