PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook VBA Programming Meeting form questions

Reply

Meeting form questions

 
Thread Tools Rate Thread
Old 04-11-2005, 04:14 PM   #1
Scout Nibblet
Guest
 
Posts: n/a
Default Meeting form questions


I am using the following code to generate a prepopulated Meeting
Request. I would like to know how to accomplish the following;
- View the form and edit it before sending it along (add resources
etc.)
- Stop the security warning for sending email

I have used the display method, but I cannot get to the form as it is
behind the security dialog box

Thanks

Jeff

===========================================================
' Start Outlook.
' If it is already running, you'll use the same instance...
Dim olApp As Outlook.Application
Set olApp = CreateObject("Outlook.Application")

' Logon. Doesn't hurt if you are already running and logged on...
Dim olNs As Outlook.NameSpace
Set olNs = olApp.GetNamespace("MAPI")
olNs.Logon

Set myItem = olApp.CreateItem(olAppointmentItem)
myItem.MeetingStatus = olMeeting
myItem.Subject = "Strategy Meeting"
myItem.Location = "Conference Room B"
myItem.Start = #11/5/2005 1:30:00 PM#
myItem.Duration = 90
Set myRequiredAttendee =
myItem.Recipients.Add("jeff.potts@cibc.com")
myRequiredAttendee.Type = olRequired
Set myOptionalAttendee = myItem.Recipients.Add("Kevin Kennedy")
myOptionalAttendee.Type = olOptional
Set myResourceAttendee = _
myItem.Recipients.Add("Conference Room B")
myResourceAttendee.Type = olResource
myItem.Display
myItem.Send

  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