Create calendar item on pop3

  • Thread starter Thread starter Mads Westen
  • Start date Start date
M

Mads Westen

Hi,
I've written some code that can create calendar items on difference users on
an Exchange server.
I want to be able to do this on a pop3 account also, but I can't find the
calendar and get an error.

I'm using the code found on http://www.outlookcode.com/codedetail.aspx?id=43
I could imagine that it's here the problem is:
Code-start
"
objNS.GetSharedDefaultFolder(objRecip, _
olFolderCalendar)
"
Code-end

Because I do not have a shared calendar on pop3?

Regards
Mads
 
That method is only usable for delegate Exchange mailboxes. Use
GetDefaultFolder for the default calendar or iterate the Folders collection
of the NameSpace object until you find the calendar you want or the location
where you want to create the folder.
 
Thank you for your answer.
Could you give a small example on how to iterate the folders, or how to
point directly at the calendar folder?
Or is it just like this:
"GetDefaultFolder(olFolderCalendar)" and then I'll always have the right
folder, because on pop3 accounts there's no need to supply with username?

Regards
Mads
 
Using GetDefaultFolder that way will always return the default Calendar
folder, if that's what you want.
 
I think so. Nothing else to do than test on it now.

Thank you very much for your feedback.

Best regards
Mads
 
Back
Top