A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Create calendar item on pop3



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 18th 07, 02:13 PM posted to microsoft.public.outlook.program_vba
Mads Westen
external usenet poster
 
Posts: 9
Default Create calendar item on pop3

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  
Old June 18th 07, 03:24 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Create calendar item on pop3

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  
Old June 19th 07, 08:33 AM posted to microsoft.public.outlook.program_vba
Mads Westen
external usenet poster
 
Posts: 9
Default Create calendar item on pop3

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  
Old June 19th 07, 04:05 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Create calendar item on pop3

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  
Old June 20th 07, 08:55 AM posted to microsoft.public.outlook.program_vba
Mads Westen
external usenet poster
 
Posts: 9
Default Create calendar item on pop3

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 09:11 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.