How to Delete file that says "The directory name is not valid"?



How do I Delete a file that says "The directory name is not valid"? I have a
whole list of files that state that and I want to get them off of my Recent
Documents list.

Graham Mayor

Word 2003

If you want to delete them all then set tools > options > general > recently
used files to 0, confirm the change, then change it back to the number it
was previously.

See also

If you want to selectively delete, then it gets altogether more complicated,
but friend and fellow MVP Greg Maxey has done all the work - see

Word 2007

The list is stored in the registry at
HKEY_CURRENT_USER\Software\Microsoft\Office\12\Word\FileMRU, from where you
can delete individual entries
You can use the following macro which will reset the list to your preset
preferred number of displayed documents:

Sub ClearMRU
Application.DisplayRecentFiles = True
listsize = RecentFiles.Maximum
RecentFiles.Maximum = 0
RecentFiles.Maximum = listsize
End Sub

or again to edit the list see

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>

Suzanne S. Barnhill

Actually, if we're just talking about the File menu MRU (in Word 2003 and
earlier), they can be selectively deleted using Alt+Ctrl+Hyphen.

Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

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