+ Reply to Thread
Results 1 to 2 of 2

How to reference a subfolder of a folder in Inbox in Outlook VBA

  1. #1
    Registered User
    Join Date
    06-25-2020
    Location
    Lithuania
    MS-Off Ver
    365
    Posts
    1

    Unhappy How to reference a subfolder of a folder in Inbox in Outlook VBA

    Hi folks,

    I got stuck with a seemingly simple issue. I want to reference a subfolder of a folder in Inbox. I have the following folder structure in Inbox:

    HTML Code: 
    Inbox
       --- employees
           --- division1
           --- division2
    I can reference emplyees folder by using this:

    Set objDestFolder = Folder.Folders("employees")

    But how do I reference folders division1, division2 ?

  2. #2
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    2016 primarily
    Posts
    6,084

    Re: How to reference a subfolder of a folder in Inbox in Outlook VBA

    You should just be able to do:

    Please Login or Register  to view this content.
    for example.
    Rory
    I drink, and I know things

+ 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. Macro to take count of emails in each folder and subfolder from outlook mailbox
    By saurabhlotankar in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-07-2017, 01:33 AM
  2. [SOLVED] VBA to move email from inbox to subfolder
    By Marijke in forum Outlook Programming / VBA / Macros
    Replies: 4
    Last Post: 04-11-2017, 02:31 AM
  3. Replies: 14
    Last Post: 09-18-2016, 08:13 AM
  4. VBA code needed to move from Outlook 2010 subfolder to Symantec Vault subfolder
    By Marijke in forum Outlook Programming / VBA / Macros
    Replies: 1
    Last Post: 01-09-2014, 12:14 PM
  5. Move categorized email from Inbox to a subfolder named exactly as the category
    By lennasaurus in forum Outlook Formatting & Functions
    Replies: 0
    Last Post: 11-20-2013, 03:24 AM
  6. Replies: 0
    Last Post: 09-12-2013, 07:43 AM
  7. Move Inbox Subfolder Items by Category to Folder
    By ker9 in forum Outlook Programming / VBA / Macros
    Replies: 4
    Last Post: 08-30-2011, 02:03 PM

Tags for this Thread

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