PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook VBA Programming open a form

Reply

open a form

 
Thread Tools Rate Thread
Old 11-08-2004, 01:39 PM   #1
Nick
Guest
 
Posts: n/a
Default open a form


How do I open a form in Personal Forms library using VBA
code

Cheers

Nick
  Reply With Quote
Old 11-08-2004, 02:21 PM   #2
Sue Mosher [MVP-Outlook]
Guest
 
Posts: n/a
Default Re: open a form

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.


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


"Nick" <anonymous@discussions.microsoft.com> wrote in message
news:3db201c47fa0$3e5b1cf0$a301280a@phx.gbl...
> How do I open a form in Personal Forms library using VBA
> code
>
> Cheers
>
> Nick



  Reply With Quote
Old 11-08-2004, 04:06 PM   #3
Nick
Guest
 
Posts: n/a
Default Re: open a form

Sue
I have created a custom outlook form and it is stored in
the personal forms library, However I would like to create
a button/macro that when you "click" on an icon on the
tool bar it automatically opens a form. Can this be done?



>-----Original Message-----
>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.
>
>
>--
>Sue Mosher, Outlook MVP
>Author of
> Microsoft Outlook Programming - Jumpstart for
> Administrators, Power Users, and Developers
> http://www.outlookcode.com/jumpstart.aspx
>
>
>"Nick" <anonymous@discussions.microsoft.com> wrote in

message
>news:3db201c47fa0$3e5b1cf0$a301280a@phx.gbl...
>> How do I open a form in Personal Forms library using VBA
>> code
>>
>> Cheers
>>
>> Nick

>
>
>.
>

  Reply With Quote
Old 11-08-2004, 04:38 PM   #4
Sue Mosher [MVP-Outlook]
Guest
 
Posts: n/a
Default Re: open a form

Yes, as I indicated in my previous answer. See
http://www.outlookcode.com/d/launchform.htm for other form launching
methods.

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


"Nick" <anonymous@discussions.microsoft.com> wrote in message
news:448701c47fb4$ba6af8b0$a401280a@phx.gbl...
> Sue
> I have created a custom outlook form and it is stored in
> the personal forms library, However I would like to create
> a button/macro that when you "click" on an icon on the
> tool bar it automatically opens a form. Can this be done?
>
>
>
> >-----Original Message-----
> >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.


> >
> >"Nick" <anonymous@discussions.microsoft.com> wrote in

> message
> >news:3db201c47fa0$3e5b1cf0$a301280a@phx.gbl...
> >> How do I open a form in Personal Forms library using VBA
> >> code
> >>
> >> Cheers
> >>
> >> Nick

> >
> >
> >.
> >



  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