Macro to remove Most Recent File from list?

  • Thread starter Thread starter AA
  • Start date Start date
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
 
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:
 
Back
Top