Solved

Outlook, Exchange and Forms

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Follow this checklist to learn more about the 15 things you should never include in an email signature from personal quotes, animated gifs and out-of-date marketing content.
Read this checklist to learn more about the 15 things you should never include in an email signature.
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: …
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…

820 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