PC Review


Reply
Thread Tools Rate Thread

How to create an appointment without having the creating account being an attendee?

 
 
Don
Guest
Posts: n/a
 
      27th May 2005
Is there any way to create an appointment without including the creator
of the appointment in the appointment? For example, if I use the
following code to create an appointment for someone else, it always
includes me in the attendees. I have tried a few things so far without
any luck.

Thanks!

Sub Go()
' Create an Outlook application.
Dim oApp As Application = New Application

' Get NameSpace and Logon.
Dim oNS As [NameSpace] = oApp.GetNamespace("mapi")
oNS.Logon("", "", False, True)

' Create a new AppointmentItem.
Dim oAppt As AppointmentItem =
oApp.CreateItem(OlItemType.olAppointmentItem)

' Set some common properties.
oAppt.Subject = Me.txtSubject.Text
oAppt.Body = Me.txtBody.Text
oAppt.Location = Me.txtLocation.Text
oAppt.RequiredAttendees = Me.txtRequired.Text

oAppt.Start = calStart.Value
oAppt.End = calEnd.Value

oAppt.ReminderSet = True
oAppt.ReminderMinutesBeforeStart = 5
oAppt.BusyStatus = OlBusyStatus.olBusy ' olBusy
oAppt.IsOnlineMeeting = False

oAppt.ResponseRequested = False
oAppt.OptionalAttendees = Me.txtOptional.text

' Save to Calendar.
oAppt.Save()

' Logoff.
oNS.Logoff()

' Clean up.
oApp = Nothing
oNS = Nothing
oAppt = Nothing
End Sub

 
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Default Attendee when creating an appointment =?Utf-8?B?VGhlRnJhbWVHdXk=?= Microsoft Outlook Calendar 0 2nd Jul 2007 08:52 PM
Outlook, create calendar appointment on pop3 account Mads Westen Microsoft VB .NET 0 27th Mar 2007 02:01 PM
create an appointment with different account =?Utf-8?B?RGFuaWVsIEI=?= Microsoft Outlook BCM 1 17th Feb 2006 04:35 PM
Outlook 2003 crashes when creating an appointment with one particular attendee pauljamesrouse@hotmail.com Microsoft Outlook Calendar 1 15th Mar 2005 04:30 PM
Appointment attendee =?Utf-8?B?am9uYXRoYW4=?= Microsoft Outlook Calendar 0 14th Oct 2004 02:19 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:04 PM.