Solved

Outlook, Exchange and Forms

Posted on 2003-11-25
3
201 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Following basic email etiquette rules will help you write a professional email and achieve a good, lasting impression with your contacts.
MS Outlook is a world-class email client application that is mainly used for e-communication globally.  In this article, we will discuss the basic idea about MS Outlook, its advanced features, and types of MS Outlook File formats.
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

914 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now