(I forgot the article was not only about VBA)
How to clear recent document lists from Excel?
The recent opened workbook lists will be stored in the Recent pane when we open an Excel file each time as following screenshot shown. But, sometimes, you need to clear such long boring workbook lists from the Recent pane. This article will show you how to make the recent document lists disappear.
- Reuse Anything: Add the most used or complex formulas, charts and anything else to your favorites, and quickly reuse them in the future.
- More than 20 text features: Extract Number from Text String; Extract or Remove Part of Texts; Convert Numbers and Currencies to English Words.
- Merge Tools: Multiple Workbooks and Sheets into One; Merge Multiple Cells/Rows/Columns Without Losing Data; Merge Duplicate Rows and Sum.
- Split Tools: Split Data into Multiple Sheets Based on Value; One Workbook to Multiple Excel, PDF or CSV Files; One Column to Multiple Columns.
- Paste Skipping Hidden/Filtered Rows; Count And Sum by Background Color; Send Personalized Emails to Multiple Recipients in Bulk.
- Super Filter: Create advanced filter schemes and apply to any sheets; Sort by week, day, frequency and more; Filter by bold, formulas, comment...
- More than 300 powerful features; Works with Office 2007-2019 and 365; Supports all languages; Easy deploying in your enterprise or organization.
To remove the recent document lists in Excel, you can go to the Excel Options to do a little setting. Please do as follows:
1. Open a workbook, and go to click File > Options (In Excel 2007. Click Office button > Excel Options), and in the Excel Options dialog box, please click Advanced from the left pane, and then scroll down to the Display section and change the number to 0 besides the Show this number of Recent Documents text box. See screenshot:
2. Then click OK to close this dialog, and now when you go the Recent pane, all the recent document lists have been cleared at once, see screenshots:
Note: If you want to restore the recent items, you can type the number back to the Show this number of Recent Documents text box in the Excel Options dialog.
You can also remove all the recent document lists by applying the Clear unpinned Workbooks feature.
1. Go to the recent document lists by clicking File > Recent in Excel 2010, or click File > Open > Recent Workbooks in Excel 2013.
2. Then in the Recent Workbooks list, right click and choose Clear unpinned Workbooks from the context menu, see screenshot:
3. And a prompt box will pop out to remind you if you want to remove all the unpinned items from the list, click Yes button, and all the unpinned recent workbooks will be cleared at once.
1. After removing the recent document lists, they are not restored any more, and this method is only applied to Excel 2010, 2013.
2. This method only remove the unpinned files.
The following VBA code can help you to remove all the recent document lists immediately as well.
1. Press the ALT + F11 keys together, and it opens the Microsoft Visual Basic for Applications window.
2. Click Insert > Module, and paste the following code in the Module Window.
VBA code: remove the recent document lists
Sub Clearrecentfiles() 'Update 20140925 On Error Resume Next Do Until Err.Number <> 0 Application.RecentFiles.Item(1).Delete Loop End Sub
3. Then press F5 key to run this code, and all the recent document lists have been removed at once.
Note: With this code, the recent document lists cannot be restored.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
- To post as a guest, your comment is unpublished.· 3 months agoWith VBA!
(I forgot the article was not only about VBA)
- To post as a guest, your comment is unpublished.· 3 months agoHow to clear only unpinned recent files?
- To post as a guest, your comment is unpublished.· 9 months agoWell that only cleared them when I kept it set at 0, I tried closing and restarting, but all the deleted files shoe back up, the clear all unpinned option is not showing up in my version of 365
- To post as a guest, your comment is unpublished.· 1 years agoVBA - How do I remove a folder list name from the recent save as list in excel 2016?
- To post as a guest, your comment is unpublished.· 1 years agoDid you ever figure this out? I have the same question.
- To post as a guest, your comment is unpublished.· 2 years agoRight Click on Taskbar, click on Taskbar Setting then click on Start which is on the leftside of the page and then turn off the “Show recently opened items in Jump List on Start or the Task Bar.