Word VBA: Problem and questions about Options.DefaultFilePath(Path)

T

Thomas Lindberg

I need to programmatically, WordVBA, access the path info that I can find in
Tools-Options-File Locations: Documents

Seems simple enough:
myDocPath=Options.DefaultFilePath(wdDocumentsPath)

But when using this, the myDocPath variable actually shows the last accessed
File-Open path or the File-Save As path,
not what I read in Tools-Options-File Locations: Documents
Why? Bug? My error or misunderstanding?
There is an alternative for the path, the 'wdUserOptionsPath', but that is
not defined nor is it intuitively clear to me.
What is meant with 'wdUserOptionsPath'?? Is this the Path I'm looking for??
It seems so from non-exhaustive tests but I would like to know for sure
before I distribute the macro

Any better ideas how to obtain what the User actually put in
Tools-Options-File Locations: Documents???


Any hints appreciated!!!


Thomas
 

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