How to programmatically using Access VBA to read a sub folder in public folders in Outlook?

Posted on 2008-11-12
Last Modified: 2012-05-05
Hi Experts,

How to programmatically using Access VBA to read a sub folder in public folders in Outlook?

There are 4 levels of sub folders within the "Public Folders" (see attached pic file)

I want a Access VBA to save the attached Excel files from each email in each sub folder contained in the "Terminal Logs" folder to a folder on my local computer.
There are multiple emails but I want the email with yesterday's date.

How can this be done using VBA in Access?


How can this be done

Question by:indyng
    LVL 38

    Accepted Solution

    The recursive function at the link below should do what you want.  Implementation is explained step by step and the source code is provided.
    LVL 38

    Expert Comment

    Sorry, I misread the post.  I missed the word "save" and thought you wanted to list the files in the public folders.  Nonetheless, I believe the above code can be adapted to perform  "saves" to the public folders.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    The first two articles in this short series — Using a Criteria Form to Filter Records ( and Building a Custom Filter ( — discuss in some detail how a form can be…
    I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
    Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now