+ Reply to Thread
Results 1 to 2 of 2

Is there a method of Outlook VBA distinguishing inbox folders from one another?

  1. #1
    Forum Contributor
    Join Date
    04-02-2017
    Location
    Australia
    MS-Off Ver
    2016
    Posts
    403

    Is there a method of Outlook VBA distinguishing inbox folders from one another?

    Hi guys,

    Please look at the attached photo of my inbox folder structure:
    I want code that can distinguish between emails within the "Inbox/Tickets/CC'ed" folder to emails found within the "Inbox/CC'ed" folder; so that I can have different functions preformed dependent on the email's original folder.


    Within my outlook I have multiple folders with the same name eg "CC'ed" when I run my code (see below), the code does not differentiate between the email's folder or parent folder's. Does anyone have a way of getting outlook to distinguish a difference between the two different "CC'ed" Folders?

    My code:

    Please Login or Register  to view this content.
    Attached Images Attached Images
    Last edited by JimmyWilliams; 02-22-2022 at 01:40 AM. Reason: changed photo uploaded.
    Thanks,

    JimmyWilliams

  2. #2
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent SAC
    Posts
    8,885

    Re: Is there a method of Outlook VBA distinguishing inbox folders from one another?

    You're comparing the names currently, which are both just "CC'ed". You need to look at the folder path of each - for example:

    Please Login or Register  to view this content.
    Rory

+ 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. Shared inbox with sub-folders
    By wjb1976 in forum Outlook Formatting & Functions
    Replies: 1
    Last Post: 04-14-2018, 09:55 AM
  2. Add Shared Outlook Inbox
    By stimulus in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-03-2017, 09:20 AM
  3. macro to loop through all folders and sub folders of outlook and save to excel
    By excelhelpseeker in forum Outlook Formatting & Functions
    Replies: 0
    Last Post: 10-27-2016, 03:24 AM
  4. Get e-mails from outlook inbox
    By Peter1245 in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 06-26-2013, 10:49 AM
  5. Select Outlook inbox plus sub folders and export to excel.
    By stuartjohnwood in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-06-2011, 04:10 AM
  6. Reading from outlook inbox
    By ajocius1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-12-2008, 03:42 AM
  7. repair outlook inbox
    By swede in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-04-2006, 07:30 AM

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