Re: Addtorecentfiles trouble
The recent files list stores in three places:
C:\Documents and Settings\VB-Guru\Recent
C:\Documents and Settings\VB-Guru\Application Data\Microsoft\Office\Recent
Also, a section in the Registry. I forgot where :blush: but I had assisted in a thread on it before so amy a search would show it location.
Try clearing out your files and testing again. It could be that its being added from the cache.
Re: Addtorecentfiles trouble
Quote:
Originally Posted by RobDog888
The recent files list stores in three places:
C:\Documents and Settings\VB-Guru\Recent
C:\Documents and Settings\VB-Guru\Application Data\Microsoft\Office\Recent
Also, a section in the Registry. I forgot where :blush: but I had assisted in a thread on it before so amy a search would show it location.
Try clearing out your files and testing again. It could be that its being added from the cache.
What about setting the 4th parameter of the Documents.Open to False, would that not work?
VB Code:
Dim objExample As Object
objExample = Documents.Open(FileName:="D:\MS Office\My Documents\Other\Complete Idiots Guide To DVD Remote.doc", AddToRecentFiles:=False)
Cheers,
RyanJ
Re: Addtorecentfiles trouble
Zaza is already doing that. Maybe there is something else going on?
Re: Addtorecentfiles trouble
Quote:
Originally Posted by RobDog888
Zaza is already doing that. Maybe there is something else going on?
OOps, sorry I did not see that bit....
Cheers,
RyanJ
Re: Addtorecentfiles trouble
No need to apologize, just was pointing it out hoping to help narrow it down to the issue. :)
Re: Addtorecentfiles trouble
Quote:
Originally Posted by RobDog888
No need to apologize, just was pointing it out hoping to help narrow it down to the issue. :)
Like you said deleting the entry from the recent documents list would do the trick if you cannot fix this problem :)
And I checked in the registry and I cannot seem to find a place where they are stored, maybe they are not stored in the registry after all :)
Cheers,
RyanJ
Re: Addtorecentfiles trouble
I found it. It was in the General Developers Forum. :rolleyes: :D
Recent Files Locations
Re: Addtorecentfiles trouble
if you saveas it can also addtorecentfiles
also to remove
RecentFiles(2).Delete
pete
Re: Addtorecentfiles trouble
Hi,
Aha, nice work westconn1. Actually, I wasn't using saveas. I was, however, including a sneaky Save option in the "Close" method - it was this that was causing it to be added to the files list. Solution: save it first using SaveAs with Addtorecentfiles set to false, then close it without saving.
Job done. Nice one.
zaza
Re: Addtorecentfiles trouble
any save method that uses options is really saveAs
pete