PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook VBA Programming Appointment form designed in outlook how to call it using vba

Reply

Appointment form designed in outlook how to call it using vba

 
Thread Tools Rate Thread
Old 28-04-2004, 03:52 AM   #1
N
Guest
 
Posts: n/a
Default Appointment form designed in outlook how to call it using vba


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


  Reply With Quote
Old 28-04-2004, 04:13 AM   #2
Sue Mosher [MVP-Outlook]
Guest
 
Posts: n/a
Default Re: Appointment form designed in outlook how to call it using vba

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.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"N" <nospam@b.com> wrote in message news:e0Fjc.289457$Ig.279656@pd7tw2no...
> 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
>
>



  Reply With Quote
Old 28-04-2004, 04:32 AM   #3
N
Guest
 
Posts: n/a
Default Re: Appointment form designed in outlook how to call it using vba

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
"Sue Mosher [MVP-Outlook]" <suemvp@outlookcode.com> wrote in message
news:%230tc23MLEHA.2532@TK2MSFTNGP10.phx.gbl...
> 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.
>
> --
> Sue Mosher, Outlook MVP
> Author of
> Microsoft Outlook Programming - Jumpstart for
> Administrators, Power Users, and Developers
> http://www.outlookcode.com/jumpstart.aspx
>
>
> "N" <nospam@b.com> wrote in message

news:e0Fjc.289457$Ig.279656@pd7tw2no...
> > 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
> >
> >

>
>



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off