Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5982457
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T22:05:24+00:00 2026-05-22T22:05:24+00:00

a task was thrown in my lap that requires me to: Iterate through many

  • 0

a task was thrown in my lap that requires me to:

  1. Iterate through many (1000’s) of message folders in outlook 2010
  2. for each folder in a specific subfolder, right click a menu, select export as pdf (this is a plugin “DocumentExporter”), and click the ok button

I use outlook rarely, so I’ve never automated it to this extent. I see you can do it with vba, and also potentially .net (i’ve installed the .net programmability extensions)

Any suggestions on the quickest way to go about this?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T22:05:25+00:00Added an answer on May 22, 2026 at 10:05 pm

    I do not have Outlook here so the following is air-code.

    Sub DoIt()
      Recurse ActiveExplorer.CurrentFolder ' select relevant folder in Outlook first
    End Sub
    
    Sub Recurse(f as MAPIFolder)
      Dim sf As MAPIFolder
    
      PrintPdf
    
      For Each sf In f.Folders
        ' open a potential sub-tree of folders, and move down one folder in the UI
        SendKeys "{RIGHT}{PAUSE 100}{DOWN}"
        Recurse sf
      Next f
    End Sub
    
    Sub PrintPdf()
      ' open the context menu, go down 4 entries, press enter, wait 10 seconds
      SendKeys "{APP}{PAUSE 100}{DOWN 4}{ENTER}{PAUSE 10000}"
    End Sub
    

    I have no idea if this will work, it’s just an idea. Make sure that Outlook is in foreground while running this (by assigning the DoIt() routine to a custom toolbar button). The starting folder must be selected before you begin.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The task is simple, and the answers might be many. But here goes: On
I have a custom MSBuild task that peeks inside an assembly to get some
I have service object (Service A), that has some specific repetitive asynchronous task .
The background of this question is that my current task is to develope an
Task: implement paging of database records suitable for different RDBMS. Method should work for
The task is to take a list of tables which is changeable. Write a
Simple task like make AJAX request , pass one parameter and return result, can
Is there a rake task for backing up the data in your database? I
I've got the task of displaying a web form to represent the properties in
Right now my ant task looks like. <javadoc sourcepath=${source} destdir=${doc}> <link href=http://java.sun.com/j2se/1.5.0/docs/api/ /> </javadoc>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.