S
Sunouchi@
Hello,
While writing VBA code, I encounter a problem.
I want to save files in a the Documents map, as is set in Word by:
Tools > Options > File Locations > Documents. e.g.: D:\DocumentMap
I can read that file location with: str_StartPath =
Options.DefaultFilePath(wdDocumentsPath)
That works fine, untill I save (manually) a Word document in another
location, e.g. C:\OtherMap then the next time I run the code,
str_StartPath gives that new location (C:\OtherMap), as the default
save map
However, when I check the location manually (in Word) Tools > Options
Is there a way to read the right location (D:\DocumentMap) which is
seen in Tools > Options > File Locations > Documents, even if the
current document path has changed through a manual action? I mean: how
can I read the correct path (D:\DocumentMap) under any circumstances,
regardless of any (saving) action in Word manually, through VBA code?
Thanks in advance.
Sunouchi
While writing VBA code, I encounter a problem.
I want to save files in a the Documents map, as is set in Word by:
Tools > Options > File Locations > Documents. e.g.: D:\DocumentMap
I can read that file location with: str_StartPath =
Options.DefaultFilePath(wdDocumentsPath)
That works fine, untill I save (manually) a Word document in another
location, e.g. C:\OtherMap then the next time I run the code,
str_StartPath gives that new location (C:\OtherMap), as the default
save map
However, when I check the location manually (in Word) Tools > Options
still there and hasn't changed.File Locations > Documents: the original path (D:\DocumentMap) is
Is there a way to read the right location (D:\DocumentMap) which is
seen in Tools > Options > File Locations > Documents, even if the
current document path has changed through a manual action? I mean: how
can I read the correct path (D:\DocumentMap) under any circumstances,
regardless of any (saving) action in Word manually, through VBA code?
Thanks in advance.
Sunouchi