To reset a single Outlook folder’s view, you can simply click the “Reset View” button in “View” ribbon. But, if you want to reset the views of a folder and all its subfolders in bulk, you’ll long for a more effective way. This post will show you such a method.
If you want to reset all the folders’ views in your Outlook, you can simply utilize a command line switch – “outlook.exe /cleanviews”. You can just close Outlook and put the line to the search bar in “Start Menu” and press “Enter” to run it. By this means, all custom views you configured will be lost. Therefore, if you only wish to reset the views of a folder and all its subfolder, you had better not use the above way. Instead, you can make use of the following method. It can reset the views of a folder as well as all its subfolders in one go.
Batch Reset the Views of a Folder and All Its Subfolders
- At the very outset, launch Outlook program.
- Then, in the folder list, select and open the main folder.
- Next, press “Alt + F11” key buttons to access Outlook VBA editor.
- In the subsequent window, copy the VBA code below into a module.
Sub ResetViews_FolderAllSubfolders() Dim objFolder As Outlook.Folder Dim objSubfolder As Outlook.Folder Dim objView As Outlook.View 'Get the currently opened folder Set objFolder = Outlook.Application.ActiveExplorer.CurrentFolder If MsgBox("Are you sure to reset the views of " & objFolder.Name & " and all its subfolders?", vbQuestion + vbYesNo) = vbYes Then 'Reset the current folder's view Set objView = objFolder.CurrentView objView.Reset objView.Save objView.Apply If objFolder.Folders.Count > 0 Then 'Reset the views of all subfolders For Each objSubfolder In objFolder.Folders Set objView = objSubfolder.CurrentView objView.Reset objView.Save objView.Apply Next End If 'Prompt you MsgBox "Complete!", vbInformation + vbOKOnly End If End Sub
- After that, trigger this macro by pressing “F5” key or clicking the “Run” icon in the toolbar.
- Later, you’ll receive a message for conformation to reset views. Here you can click “OK”.
- At once, all the views of the currently opened folder and all its subfolders will be reset to its initial settings.
Deal with Frequent Outlook Troubles
Outlook is susceptible to corruption for various reasons. For example, viruses can attack your Outlook, leading Outlook file to corruption with effortless ease. Thus, it is essential to pay special attention to Outlook health and keep all threats at bay. Besides, if feasible, it is also recommended to prepare a robust Outlook fix tool in vicinity, like DataNumen Outlook Repair. It can help you in case of Scanpst failure.
Shirley Zhang is a data recovery expert in DataNumen, Inc., which is the world leader in data recovery technologies, including corrupted sql and outlook repair software products. For more information visit www.datanumen.com