hello !
i just created an appointment in outlook with VB using outlook 9 object library.
And now i want to know what are the dates that the Appointment is taking place .
is there any method in outlook that will show me that ?
10x
Printable View
hello !
i just created an appointment in outlook with VB using outlook 9 object library.
And now i want to know what are the dates that the Appointment is taking place .
is there any method in outlook that will show me that ?
10x
Hi there
I don't have an answer to your question (:() but wanted to know if you could share how you managed to add the appointment?
I'm looking into developing an add-in that I want to use with Outlook so this could be a goos starting point for me.
Cheers
Wayne
Try thisVB Code:
Private Sub CreateAppointment(StartTime As Date, Endtime As Date, Subject As String, Location As String) 'Create a reference to a Appointment item Dim e1 As Outlook.AppointmentItem 'Create a new appointment item Set e1 = o1.CreateItem(olAppointmentItem) 'Set a few of the many possible appointment parameters. e1.Start = StartTime e1.End = Endtime e1.Subject = Subject e1.Location = Location 'If you want to set a list of recipients, do it like this 'e1.Recipients.Add Name 'Commit the appointment e1.Send 'Free up the space Set e1 = Nothing End Sub
If You Want Something That Has RecurrencePattern
Tell Me Will Send You A Great Code
You could set the date using the following code, perhaps?
With MyAppt
.Start = Now() & "09:30:00" 'Set the date and time of the appointment
.Duration = 1 'Set the length in minutes of the appointment
end with
Hope this is what you were asking :) , if not let me know
Good luck
Richard
If You Want Something That Has RecurrencePattern
Tell Me Will Send You A Great Code