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

Tags: , , ,

Accessing mailbox with outlook library





 
 
Thread Tools Display Modes
  #1  
Old March 29th 07, 07:16 PM posted to microsoft.public.outlook.program_vba
The Facilitator
external usenet poster
 
Posts: 12
Default Accessing mailbox with outlook library

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  
Old March 29th 07, 10:14 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 3,778
Default Accessing mailbox with outlook library

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  
Old March 30th 07, 04:26 AM posted to microsoft.public.outlook.program_vba
The Facilitator
external usenet poster
 
Posts: 12
Default Accessing mailbox with outlook library

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  
Old March 30th 07, 03:26 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 3,778
Default Accessing mailbox with outlook library

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  
Old March 30th 07, 06:20 PM posted to microsoft.public.outlook.program_vba
The Facilitator
external usenet poster
 
Posts: 12
Default Accessing mailbox with outlook library

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  
Old March 30th 07, 08:18 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 3,778
Default Accessing mailbox with outlook library

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

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


All times are GMT +1. The time now is 04:20 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2008 Outlook Banter, part of the NewsgroupBanter project.
The comments are property of their posters.
Mortgage Calculator - Credit Cards UK - Loans - Web Advertising - MPAA