HELP ME PLEASE!!!!!!!!!!!!
Oke here we go again.
I want to make a program that can make appointments in a shared calander in outlook.
I have the right to make an appoinment is someone calander. I have tried it manuely.
So that part works.
I can make an appointment in my one calander, so i now that i am using the right command.
Here is the code i have so far.
Dim AppOutlook As Outlook.Application
Dim OutNamespace As Outlook.NameSpace
Dim MyItem As Object
Set AppOutlook = New Outlook.Application
Set OutNamespace = AppOutlook.GetNamespace("MAPI"
Set MyRecipient = OutNamespace.CreateRecipient("Hans van Assen"
'name of owner of the shared calander
MyRecipient.Resolve
Set HVA = OutNamespace.GetSharedDefaultFolder(MyRecipient, olFolderCalendar)
hva.display 'this command is only for checking
Set MyItem = ???.CreateItem(olAppointmentItem)
MyItem.MeetingStatus = olMeeting
MyItem.Subject = "Test"
MyItem.Location = "somewhere"
MyItem.Start = #4/5/2003 2:00:00 PM#
MyItem.Duration = 120
MyItem.Save
When the command "HVA.display" is run. I get the shared calander, so i now i am in the right spot.
At the ??? i am missing something.
When you put "appoutlook" in place of then ??? then the appointment will be made in your own calander and not in the shared you.
Hope that some nows what i am missing.
If you don't understand what i am asking please let me now.
Again PLEASE HELP ME!!!!!!!!!!!!!!!
Greetings
Ernst Jan
Oke here we go again.
I want to make a program that can make appointments in a shared calander in outlook.
I have the right to make an appoinment is someone calander. I have tried it manuely.
So that part works.
I can make an appointment in my one calander, so i now that i am using the right command.
Here is the code i have so far.
Dim AppOutlook As Outlook.Application
Dim OutNamespace As Outlook.NameSpace
Dim MyItem As Object
Set AppOutlook = New Outlook.Application
Set OutNamespace = AppOutlook.GetNamespace("MAPI"
Set MyRecipient = OutNamespace.CreateRecipient("Hans van Assen"
MyRecipient.Resolve
Set HVA = OutNamespace.GetSharedDefaultFolder(MyRecipient, olFolderCalendar)
hva.display 'this command is only for checking
Set MyItem = ???.CreateItem(olAppointmentItem)
MyItem.MeetingStatus = olMeeting
MyItem.Subject = "Test"
MyItem.Location = "somewhere"
MyItem.Start = #4/5/2003 2:00:00 PM#
MyItem.Duration = 120
MyItem.Save
When the command "HVA.display" is run. I get the shared calander, so i now i am in the right spot.
At the ??? i am missing something.
When you put "appoutlook" in place of then ??? then the appointment will be made in your own calander and not in the shared you.
Hope that some nows what i am missing.
If you don't understand what i am asking please let me now.
Again PLEASE HELP ME!!!!!!!!!!!!!!!
Greetings
Ernst Jan