Macro to remove Most Recent File from list?

A

AA

I use "Remove Menu Shortcut" fairly often to clean up the Recent File
List at the bottom of the File dropdown menu. I frequently open email
attachments, and then the temporary file becomes File1 on the list.

What I couldn't record is a macro to remove File1 from the list. I
want to assign it to a toolbar button, and then I would run it just
before I closed a temporary file (maybe I would close the file or exit
Word as the last part of the macro).

Anyway, nothing records. Is there a few lines of VBA code that would
remove File1 from the recent file list?

TIA,

Andy
 
W

Word Heretic

G'day AA <[email protected]>,

Application.RecentFiles(1).Delete

Steve Hudson - Word Heretic
Want a hyperlinked index? S/W R&D? See WordHeretic.com

steve from wordheretic.com (Email replies require payment)


AA reckoned:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top