vlammetje
03-25-2011, 11:56 AM
I want to create an appointment into my windows live mail from within outlook.
At this moment I've got a script working which creates an appointment in the Calendar called "Calendar" within the calendar group "My Calendars".
But I want the appointment to go into the windows live calendar which I've put in an other calendar group called "Vlaming".
I've got the following script (not completed but it does create an appointment within the "Calendar"):
Sub NewAppointment(oMail As Outlook.MailItem)
'/* Create the Outlook Object and Appointment Item */
MsgBox ("Begin NewAppointment")
Dim app As New Outlook.Application
Dim appointment As AppointmentItem
Dim csvData() As String
Set appointment = app.CreateItem(olAppointmentItem)
csvData = Split(oMail.Subject, ",")
appointment.Subject = csvData(APP_SUBJECT)
appointment.Save
MsgBox ("End NewAppointment-1")
End Sub
If I select the windows live mail calendar and I perform within the Immediate:
? application.activeexplorer.currentfolder.folderpath
it says
\\xxxxvlaming@live.nl\Xxxx's calendar
Please can anyone help? I've read something about defaultfolders but I don't understand it yet.
At this moment I've got a script working which creates an appointment in the Calendar called "Calendar" within the calendar group "My Calendars".
But I want the appointment to go into the windows live calendar which I've put in an other calendar group called "Vlaming".
I've got the following script (not completed but it does create an appointment within the "Calendar"):
Sub NewAppointment(oMail As Outlook.MailItem)
'/* Create the Outlook Object and Appointment Item */
MsgBox ("Begin NewAppointment")
Dim app As New Outlook.Application
Dim appointment As AppointmentItem
Dim csvData() As String
Set appointment = app.CreateItem(olAppointmentItem)
csvData = Split(oMail.Subject, ",")
appointment.Subject = csvData(APP_SUBJECT)
appointment.Save
MsgBox ("End NewAppointment-1")
End Sub
If I select the windows live mail calendar and I perform within the Immediate:
? application.activeexplorer.currentfolder.folderpath
it says
\\xxxxvlaming@live.nl\Xxxx's calendar
Please can anyone help? I've read something about defaultfolders but I don't understand it yet.