Can anyone give me the syntax/example, for capturing the default file location and passing the path to a string , then changing the default file location from a different string variable?
Just as well I checked before posting so I didn't look as if I'm copying!!!!!!
For Word
Code:
Options.DefaultFilePath(Path:=wdDocumentsPath)
is the line to read. To write just add '= string'
If your not looking for application specific I think there may be an environment variable (can't check in depth as I run win95 at home) which you can read using
Environ("variablename"
However, I don't think they can be easily written to - possible need APIs
;-)
If a man says something and there are no women there to hear him, is he still wrong?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.