SHAddToRecentDocs

T

Tom

Hi all,

I have searched this board high and low and dont see a way
to remove certain files from the Recent Docs.

I have an app that uses Word as a report generator, and
printing. But the files get put on the recent docs list,
and I dont want them to go there.

I see a way to delete them all using shAddToRecentDocs,
but I want to just remove the ones I create, or "turn off"
the feature until my app is done.

Any ideas?
 
S

Shauna Kelly

Hi Tom

I would try to avoid the issue.

When you open a file use something like: Documents.Open FileName:="myfile.doc", AddToRecentFiles:=False

If you create a file and have to save it, use something like:

Dim oDocument As Document
Set oDocument = Documents.Add
oDocument.SaveAs FileName:="myfile.doc", AddToRecentFiles:=False


Hope this helps.

Shauna Kelly. Microsoft MVP.
http://www.shaunakelly.com/word
Melbourne, Australia
 
T

Tom

Thanks for the tip, I will try it out when I get the
chance, thanks for your help.

-----Original Message-----
Hi Tom

I would try to avoid the issue.

When you open a file use something like: Documents.Open
FileName:="myfile.doc", AddToRecentFiles:=False
 

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