[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


How to propagate folder settings from Inbox to sub-folders.

Posted on 2006-03-25
Medium Priority
Last Modified: 2009-01-23
Is it possible to apply the Inbox settings to all sub-folders. For example, I would like to turn off the reading pane for all folders, but is it possible to do this only once, on the Inbox, and have this propagated to all sub-folders? It's such a pain to have to do this on each individaul folder. Thanks!
Question by:qwert5905
LVL 76

Accepted Solution

David Lee earned 500 total points
ID: 16291210
Greetings, qwert5905.

Folder settings don't trickle down.  They are set on a per folder basis.  There is a way to do this though.  All that's required is a simple macro to ripple through the folders.  The code is below.  Here are the instructions for using it.

1.  Open Outlook.
2.  Click Tools->Macro->Visual Basic Editor
3.  If not already expanded, expand Modules and click on Module1.
4.  Copy the code below and paste it into the right-hand pane.
5.  Save the code by clicking the Diskette icon.
6.  Exit the Visual Basic Editor.
7.  Click Tools->Macro->Security.
8.  Set the Security Level to Medium.
9.  Select a folder in the navigation pane.
10.  Run the KillEmAll macro.  It will run through all subfolders of the selected folder turning the reading pane off for each.

'Code Begins Here
Sub KillEmAll()
    Dim olkStartingFolder As Outlook.MAPIFolder
    Set olkStartingFolder = Application.ActiveExplorer.CurrentFolder
    KillReadingPane olkStartingFolder
    MsgBox "All done!", vbOKOnly + vbInformation, "Turn Reading Pane Off"
    Set Application.ActiveExplorer.CurrentFolder = olkStartingFolder
    Set olkStartingFolder = Nothing
End Sub

Sub KillReadingPane(olkRootFolder As Outlook.MAPIFolder)
    Dim olkExplorer As Outlook.Explorer, _
        olkFolder As Outlook.MAPIFolder
    Set Application.ActiveExplorer.CurrentFolder = olkRootFolder
    Set olkExplorer = Application.ActiveExplorer
    If olkRootFolder.DefaultItemType = olMailItem Then
        If (olkExplorer.IsPaneVisible(olPreview)) Then
            olkExplorer.ShowPane olPreview, False
        End If
    End If
    For Each olkFolder In olkRootFolder.Folders
        KillReadingPane olkFolder
    Set Application.ActiveExplorer.CurrentFolder = olkRootFolder
    Set olkFolder = Nothing
    Set olkExplorer = Nothing
End Sub
'Code Ends Here

LVL 32

Expert Comment

by:Robberbaron (robr)
ID: 16293273
i think the PFDAdmin tool will allow this as well.
I've certainly used it to replicate public folder permissions.

Featured Post

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will help to fix the below error for MS Exchange server 2010 I. Out Of office not working II. Certificate error "name on the security certificate is invalid or does not match the name of the site" III. Make Internal URLs and External…
By default Outlook 2016 displays only one time zone in the Calendar. The following article explains how to display two time zones in one calendar view.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses

834 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