So you want to hide these annoying folders under Outlook such as “Journal“, “Notes” “RSS Feeds“, “Tasks“.
You have tried everything, clicked right mouse button, tried settings, hit delete… nothing, right?
They are just taking space and attention and are absolutely useless for an email client. Nobody needs them and if you ask around, nobody uses them. So why are they there? Nobody really knows. Probably not even Microsoft.
Here is the solution. With only one simple action, you can make them disappear – it’s like a magic trick!
Just follow these steps precisely and you shall have them removed in no time.
But before you do, imagine these folders as a pencil:
Before you start (update February, 2020)
Make sure you have not selected or marked the “Inbox”, “Sent” or any other important folder before you run the script described below. It seems that many users had so much fun removing the folders, they have accidentally removed important folders and have difficulties unhiding them. It’s recommended that your read the user comments below the article.
Step 1: Preparations
Go to the File at the menu and click at “Options”, then go to “Trust Center”, click “Trust Center Settings”, in there click “Macro Settings” and select “Notification for all macros” like this:
Step 2: Click on the useless Outlook folder
Yes, click the folder you want to make disappear. Let’s start with that folder RSS Feeds. I mean, who uses RSS Feeds nowadays – that was 15 years ago – gosh!
Step 3: Writing a script
Now you are going to write a script but don’t worry. I’ll tell you exactly how.
If a security warning pops up called “Microsoft Outlook Security Notice”, just press “Enable Macros” to continue.
A new windows should open up called “Microsoft Visual Basic for Applications” that should look like this – don’t be scared. That’s your salvation!
All you have to do now is to go to “Microsoft Outlook Objects”, press right mouse button, then go to “Insert” and then “Module”. Here, let me show you:
A new window should appear on the left side. Now put this code in there:
Option Explicit Public Sub HideFolders() Dim oFolder As Outlook.Folder Dim oPA As Outlook.PropertyAccessor Dim PropName, Value, FolderType As String PropName = "http://schemas.microsoft.com/mapi/proptag/0x10F4000B" Value = True Set oFolder = Application.ActiveExplorer.CurrentFolder Set oPA = oFolder.PropertyAccessor oPA.SetProperty PropName, Value Set oFolder = Nothing Set oPA = Nothing End Sub
This is how it should look like on your end:
Step 4: Run that script!
That’s it! Run the script and the folder will disappear. How to run the script? Easy – see that “Run” feature on the menu… it’s this one here:
You can repeat this by clicking any other folder, than going back to the “Microsoft Visual Basic for Applications” window and run the script again, until all these useless outlook folders are gone.
How to Unhide a Folder
If you accidentally hid a folder such as Calendar, Inbox or want to unhide any other folder, just change this line:
Set oFolder = Application.ActiveExplorer.CurrentFolder
to this one:
Set oFolder = Session.GetDefaultFolder(olFolderCalendar)
and also change this line
Value = True
Value = False
This is how it should look like if you want to unhide the Calendar for example:
Option Explicit Public Sub HideFolders() Dim oFolder As Outlook.Folder Dim oPA As Outlook.PropertyAccessor Dim PropName, Value, FolderType As String PropName = "http://schemas.microsoft.com/mapi/proptag/0x10F4000B" Value = False Set oFolder = Session.GetDefaultFolder(olFolderCalendar) Set oPA = oFolder.PropertyAccessor oPA.SetProperty PropName, Value Set oFolder = Nothing Set oPA = Nothing End Sub