Sorry, didn't notice you were asking for a vba solution. (duh!)
You could try recording a macro setting these and modify it to fit.
Something like:
Sub ResetLocationsMacro()
Dim strWorkgroup as String
Dim strUser as String
strUser = "C:\Documents and Settings\All Users\Documents\Templates\"
strWorkgroup = "C:\Documents and Settings\All Users\Documents\Shared
Templates\"
Options.DefaultFilePath(Path:=wdUserTemplatesPath) = strUser
Options.DefaultFilePath(Path:=wdWorkgroupTemplatesPath) = strWorkgroup
end Sub
--
Charles Kenyon
Word New User FAQ & Web Directory:
http://addbalance.com/word
Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide)
http://addbalance.com/usersguide
See also the MVP FAQ:
http://www.mvps.org/word which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.