VBA command gives wrong value
Posted on 1998-08-08
I want to capture the default document path (as found in
Tools/Options/File Locations...) into a variable. Word 97
VBA help gives this code in an example:
DocPath = Options.DefaultFilePath(wdDocumentsPath)
Even though this approach comes directly from Microsofts
documentation (???), it yields the wrong path into the
variable. Instead of the default document path, it makes
DocPath equal whatever path that was last used in the
This is mysterious to me, for all of the other "wd . . ."
constants work correctly when used with Options.DefaultPath.