PC Review
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook VBA Programming
open a form
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook VBA Programming
open a form
![]() |
open a form |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
How do I open a form in Personal Forms library using VBA
code Cheers Nick |
|
|
|
#2 |
|
Guest
Posts: n/a
|
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 |
|
|
|
#3 |
|
Guest
Posts: n/a
|
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 > > >. > |
|
|
|
#4 |
|
Guest
Posts: n/a
|
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 > > > > > >. > > |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

