Solved

Outlook, Exchange and Forms

Posted on 2003-11-25
3
202 Views
Last Modified: 2010-04-08
Hello,
I have a form for booking Telephone calls, and would like to write a macro (for a button in my toolbar) that will open that form.

How do I write that macro (outlook 2K, 2002 and 2003)

Thank you
0
Comment
Question by:LotharGores
3 Comments
 
LVL 4

Accepted Solution

by:
JeremyCrouch earned 125 total points
ID: 9818915
Here is how I do it:

Sub DisplayMyForm()
Dim ns As NameSpace
Dim Inbox As MAPIFolder
Dim form As MailItem

Set ns = GetNamespace("MAPI")
Set Inbox = ns.GetDefaultFolder(olFolderInbox)
Set form = Inbox.Items.Add("IPM.Note.MyForm")
form.Display
End Sub

All of the forms that I have created are in the 'IPM.Note' class. But Im not sure if everyone's would be that way. So to check go to 'Tools' -> 'Forms' -> 'Choose Form'. Then select 'Personal Forms Library' from the drop down box. When you highlight a form you should see the message class at the bottom, if not click on the 'Details' button.
0
 
LVL 2

Author Comment

by:LotharGores
ID: 10580226
Thank you, I did forget to have this Question removed, as there seems to be no awnser to my Problem. Allthough JeremyCrouch solution works, it does not solve my issue. I will reward JeremyCrouch the points, as gis example did allow me to follow a different Solution.
Thanks dude.
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Resolve DNS query failed errors for Exchange
If you don't know how to downgrade, my instructions below should be helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question