How to clear Recent Places

jblevins

Active Member
Joined
Sep 2, 2013
Messages
250
Office Version
  1. 2003 or older
How can "Recent Places" list be cleared with VBA? I have a hidden folder that I do not want to reveal.
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Ordinarily here is a code example:

Example

This example sets the maximum number of files in the list of recently used files to 6.
Code:
<code class="lang-vb" style="background-color: var(--body-background-medium); border: 1px solid var(--border); border-bottom-color: currentColor; border-bottom-left-radius: 2px; border-bottom-right-radius: 2px; border-bottom-style: none; border-bottom-width: 0px; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; border-left-color: currentColor; border-left-style: none; border-left-width: 0px; border-right-color: currentColor; border-right-style: none; border-right-width: 0px; border-top-color: currentColor; border-top-left-radius: 2px; border-top-right-radius: 2px; border-top-style: none; border-top-width: 0px; box-sizing: inherit; direction: ltr; display: block; font-family: monospace,monospace; font-size: 0.87rem; line-height: 19px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" data-author-content="Application.RecentFiles.Maximum = 6
">Application.RecentFiles.Maximum = 6
Try substitute 0 for the 6

Not certain it will work without trying.</code>
 
Upvote 0
Ordinarily here is a code example:

Example

This example sets the maximum number of files in the list of recently used files to 6.
Code:
<code class="lang-vb" style="background-color: var(--body-background-medium); border: 1px solid var(--border); border-bottom-color: currentColor; border-bottom-left-radius: 2px; border-bottom-right-radius: 2px; border-bottom-style: none; border-bottom-width: 0px; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; border-left-color: currentColor; border-left-style: none; border-left-width: 0px; border-right-color: currentColor; border-right-style: none; border-right-width: 0px; border-top-color: currentColor; border-top-left-radius: 2px; border-top-right-radius: 2px; border-top-style: none; border-top-width: 0px; box-sizing: inherit; direction: ltr; display: block; font-family: monospace,monospace; font-size: 0.87rem; line-height: 19px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" data-author-content="Application.RecentFiles.Maximum = 6
">Application.RecentFiles.Maximum = 6
Try substitute 0 for the 6

Not certain it will work without trying.</code>

Thanks, but not "Recent Files", "Recent Places" that came out with the "ribbon" and shows the path to the folders.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,244
Members
452,622
Latest member
Laura_PinksBTHFT

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top