Solved

Outlook, Exchange and Forms

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Use email signature images to promote corporate certifications and industry awards.
Resolve Outlook connectivity issues after moving mailbox to new Exchange 2016 server
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…
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 …

705 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

20 Experts available now in Live!

Get 1:1 Help Now