PC Review
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook VBA Programming
Appointment form designed in outlook how to call it using vba
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook VBA Programming
Appointment form designed in outlook how to call it using vba
![]() |
Appointment form designed in outlook how to call it using vba |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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 |
|
|
|
#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. 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 > > |
|
|
|
#3 |
|
Guest
Posts: n/a
|
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 > > > > > > |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

