Appointment form designed in outlook how to call it using vba

N

N

Hi

I have designed a form in outlook , an appointment form I would like to use
with in my vba program. Right now the program brings up the standard appt
form
with this command

Dim objOutlook As Outlook.Application
Dim objAppt As Outlook.AppointmentItem
Set objOutlook = CreateObject("Outlook.Application")
Set objAppt = objOutlook.CreateItem(olAppointmentItem)

how do I get my program to call my new appt form
any help would be great
thnx
N
 
S

Sue Mosher [MVP-Outlook]

To create a new instance of a custom form programmatically, use the Add
method on the target folder's Items collection. If it's a message form, you
can use the Drafts folder as the target. If the target is a default folder,
you can use the Namespace.GetDefaultFolder method to return it as a
MAPIFolder object. Otherwise, you can use the code at
http://www.outlookcode.com/d/code/getfolder.htm to walk the folder hierarchy
and return the MAPIFolder corresponding to a given path string.

See http://www.outlookcode.com/d/launchform.htm for other ideas.
 
N

N

thanks sue I knew it was along those lines but just couldn't see it
I was hoping you would answer my questions
your book looks interesting wish they would have one in my city I would have
picked it up
thnx
N
 

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