+ Reply to Thread
Results 1 to 2 of 2

Get more than one inbox from MAPI

  1. #1
    Registered User
    Join Date
    08-23-2020
    Location
    Singapore
    MS-Off Ver
    office 365
    Posts
    18

    Get more than one inbox from MAPI

    Hi there,

    Is there a way to get more than one inbox from MAPI?
    Currently I am able to get my inbox. I would like to have both the sent items and the inbox as well?

    Dim objNS As Outlook.NameSpace, objFolder As Outlook.MAPIFolder, objResItem As Object, objMail As MailItem, objResendMail As MailItem, olFldrItms As Items
    Set objNS = GetNamespace("MAPI")
    Set objFolder = objNS.Folders.Item("xxxxxxxx").Folders("Inbox") ' folders of your current account

  2. #2
    Banned User!
    Join Date
    02-06-2020
    Location
    Iowa City, IA, USA
    MS-Off Ver
    2016 - 365 / 2007
    Posts
    2,014

    Re: Get more than one inbox from MAPI

    of course you can. the folders collection has everything in it that you need. including the names of all the folders of the default profile I believe. however, if you have more than PST profile sitting in your outlook application, you might have to choose the appropriate index to get to the folders you need.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Add Shared Outlook Inbox
    By stimulus in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-03-2017, 09:20 AM
  2. MAPI error message when import or export messages in Outlook Express
    By frescoabeyta in forum Microsoft Windows Help
    Replies: 1
    Last Post: 04-08-2016, 09:02 AM
  3. How about a bigger inbox?
    By Jacc in forum Suggestions for Improvement
    Replies: 16
    Last Post: 02-13-2014, 03:57 AM
  4. Not getting E-mails in Inbox
    By LilyMarie in forum Outlook Formatting & Functions
    Replies: 3
    Last Post: 03-06-2009, 07:10 AM
  5. [SOLVED] Is MAPI or CDO installed?
    By sarah.mould@gmail.com in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-29-2006, 09:10 AM
  6. [SOLVED] Why does Outlook.Application.GetNamespace("MAPI") Fail?
    By Lee in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-27-2005, 10:05 AM
  7. Mail goes to own inbox
    By RCCruiser in forum Excel General
    Replies: 0
    Last Post: 03-16-2005, 09:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1