![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
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 |
Ads |
#2
|
|||
|
|||
![]()
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. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Mads Westen" wrote in message ... 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 |
#3
|
|||
|
|||
![]()
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 "Ken Slovak - [MVP - Outlook]" skrev i meddelelsen ... 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. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Mads Westen" wrote in message ... 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 |
#4
|
|||
|
|||
![]()
Using GetDefaultFolder that way will always return the default Calendar
folder, if that's what you want. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Mads Westen" wrote in message ... 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 |
#5
|
|||
|
|||
![]()
I think so. Nothing else to do than test on it now.
Thank you very much for your feedback. Best regards Mads "Ken Slovak - [MVP - Outlook]" skrev i meddelelsen ... Using GetDefaultFolder that way will always return the default Calendar folder, if that's what you want. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Mads Westen" wrote in message ... 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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to create an appointment item in a non-default calendar | Jennifer | Outlook and VBA | 4 | June 20th 07 05:39 PM |
Using Excel to create a menu item | DawnTreader | Outlook and VBA | 1 | January 22nd 07 07:32 PM |
Create Menu Item | Chrischik | Outlook and VBA | 2 | July 17th 06 09:13 PM |
Unable to create new calendar item appointment | Luego | Outlook - General Queries | 0 | June 16th 06 12:05 AM |
Create a new item | jim | Add-ins for Outlook | 3 | February 8th 06 03:16 PM |