![]() |
| 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. |
|
|||||||
| Tags: accessing, library, mailbox, outlook |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Sorry for butting in here...but what is format for this? Can it be
used for Access trying to access tasks from a delegated mailbox/task list? Thanks, O On Tue, 7 Oct 2003 10:51:42 -0400, "Ken Slovak - [MVP - Outlook]" wrote: If you have permissions for the other mailboxes you can use NameSpace.GetSharedDefaultFolder to do that on a folder by folder basis. |
| Ads |
|
#2
|
|||
|
|||
|
It can be used from any Outlook automation code assuming you have the proper
permissions on that store and folder you want. Look in the Object Browser for that function to see the arguments and a code snippet on how to use it. -- 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 "The Facilitator" wrote in message ... Sorry for butting in here...but what is format for this? Can it be used for Access trying to access tasks from a delegated mailbox/task list? Thanks, O On Tue, 7 Oct 2003 10:51:42 -0400, "Ken Slovak - [MVP - Outlook]" wrote: If you have permissions for the other mailboxes you can use NameSpace.GetSharedDefaultFolder to do that on a folder by folder basis. |
|
#3
|
|||
|
|||
|
Unfortunately, I am not familiar enough with the interface between
Access and Outlook. Could you be a bit more specific, please? Thank you, O On Thu, 29 Mar 2007 16:14:44 -0400, "Ken Slovak - [MVP - Outlook]" wrote: It can be used from any Outlook automation code assuming you have the proper permissions on that store and folder you want. Look in the Object Browser for that function to see the arguments and a code snippet on how to use it. |
|
#4
|
|||
|
|||
|
Did you look in the Object Browser for that?
Here's a code sample from the Object Browser showing getting a calendar folder from GetSharedDefaultFolder: Sub ResolveName() Dim myOlApp As Outlook.Application Dim myNamespace As Outlook.NameSpace Dim myRecipient As Outlook.Recipient Dim CalendarFolder As Outlook.MAPIFolder Set myOlApp = CreateObject("Outlook.Application") Set myNamespace = myOlApp.GetNamespace("MAPI") Set myRecipient = myNamespace.CreateRecipient("Dan Wilson") myRecipient.Resolve If myRecipient.Resolved Then Call ShowCalendar(myNamespace, myRecipient) End If End Sub Sub ShowCalendar(myNamespace, myRecipient) Dim CalendarFolder As Outlook.MAPIFolder Set CalendarFolder = _ myNamespace.GetSharedDefaultFolder _ (myRecipient, olFolderCalendar) CalendarFolder.Display End Sub You can just use a Tasks folder instead to get at the tasks in that 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 "The Facilitator" wrote in message ... Unfortunately, I am not familiar enough with the interface between Access and Outlook. Could you be a bit more specific, please? Thank you, O On Thu, 29 Mar 2007 16:14:44 -0400, "Ken Slovak - [MVP - Outlook]" wrote: It can be used from any Outlook automation code assuming you have the proper permissions on that store and folder you want. Look in the Object Browser for that function to see the arguments and a code snippet on how to use it. |
|
#5
|
|||
|
|||
|
Thank you VERY much for the help.
Forgot to ask, does this work in 2K2? O On Fri, 30 Mar 2007 09:26:14 -0400, "Ken Slovak - [MVP - Outlook]" wrote: Did you look in the Object Browser for that? Here's a code sample from the Object Browser showing getting a calendar folder from GetSharedDefaultFolder: Sub ResolveName() Dim myOlApp As Outlook.Application Dim myNamespace As Outlook.NameSpace Dim myRecipient As Outlook.Recipient Dim CalendarFolder As Outlook.MAPIFolder Set myOlApp = CreateObject("Outlook.Application") Set myNamespace = myOlApp.GetNamespace("MAPI") Set myRecipient = myNamespace.CreateRecipient("Dan Wilson") myRecipient.Resolve If myRecipient.Resolved Then Call ShowCalendar(myNamespace, myRecipient) End If End Sub Sub ShowCalendar(myNamespace, myRecipient) Dim CalendarFolder As Outlook.MAPIFolder Set CalendarFolder = _ myNamespace.GetSharedDefaultFolder _ (myRecipient, olFolderCalendar) CalendarFolder.Display End Sub You can just use a Tasks folder instead to get at the tasks in that folder. |
|
#6
|
|||
|
|||
|
That code will work in any version of Outlook from 2000 to 2007.
-- 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 "The Facilitator" wrote in message ... Thank you VERY much for the help. Forgot to ask, does this work in 2K2? O |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Accessing another Exchange mailbox | SteveB | Outlook and VBA | 2 | June 15th 06 01:46 PM |
| Accessing email in an Exchange 5.5 mailbox via VBScript? | planetthoughtful@gmail.com | Outlook and VBA | 1 | May 24th 06 11:43 PM |
| Accessing shared mailbox from outlook 2003 using IMAP | mail4amar@gmail.com | Outlook - General Queries | 1 | May 4th 06 10:09 PM |
| Exchange Mailbox server prohibit from sending when reach mailbox size limit | Milly Staples [MVP - Outlook] | Outlook - General Queries | 1 | February 24th 06 07:41 PM |
| Outlook Library 9,10 and 11 | Jonathan | Outlook and VBA | 1 | January 23rd 06 06:31 PM |