Link to home
Start Free TrialLog in
Avatar of tompyd
tompyd

asked on

Reading Winword's Recent File List

How do I access the recent file list for winword (office97)?
I know that excel stores them in the registry under:
"\Software\Microsoft\Office\8.0\Excel\Recent File List"
Winword seems to store them in "User.dat" but I don't know
how to access them.
Avatar of MikeP090797
MikeP090797

You can use the Reg* Functions to access the registry at any point. Go www.planet-source-code/VB, search for 'Registry'. It has a very handy class that encapsulates the registry functions
you can search for *.doc file in Windows/Recent folder where windows 95 stores shortcuts of most recent files used in Winword/Excel/Winzip..
Avatar of tompyd

ASKER

I could not connect to the url:
www.planet-source-code/VB 
Also, Winword does not seem to use registry keys.  I already checked that.  I found Excel, but not Winword.  I also did a search of the registry for the file name and it was not there!

Sorry, the correct address is www.planet-source-code.com/VB. Anyway, reject my answer for now. I didn't notice you talked about Excel

Avatar of tompyd

ASKER

I already looked in the registry and there are no recent file list keys there
ASKER CERTIFIED SOLUTION
Avatar of Brian Mulder
Brian Mulder
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tompyd

ASKER

Is there a way to do it without launching word?
Well I can take another look but maybe it's just one of those secrets you will look for in the wrong places. Word has to got it somewhere.
By the way you could run word as a background process while using the solution I provided, but that's not gonna answer this.

Bruintje.
Avatar of tompyd

ASKER

Bruintje,
Thanks!
It did work, but it causes Word to lauch, which takes a little time.  If I don't make the wrdapp visible it is about 1/2 sec. faster.  Where is there more info on what other commands are available (ie wrdapp.fileopen or something like that)
Tom
Hi Tom,

You can find more in the helpfiles that come with Office Professional, look for the VBAWORD8.hlp file. Or you can of course goto to the MS site, because they're so big they've got to take a lot of critics against them. But they provide some very good resources for developers, if you have not done that you can register there for msdn. And if that's done you can goto this link
http://search.microsoft.com/default.asp?SPath=&SName=,
it will be of great service every time you got a question about they're products. I'm not always a proponent of the sometimes too buggy software of MS (as a hardcore Delphi dev) but I must say they make it up with a very good support site.

Hope this will get you any further
Brian.
:O)