Can a word doc be made to 'remember' its web server location?

B

Bob W

Our workgroup accesses word templates via a Web enabled document directory
system on a web server. Users log in, navigate to a desired folder, download
a template (.dot), use it locally to generate a .doc, spend some time
editing/saving/modifying the .doc locally, and then when completely
'finished', they can log back in, and upload the modified.doc into a target
folder.

It would be helpful if, while the .doc was being worked on locally, the
file/save dialog could be modified to ask "Save locally, or to server?" - if
the user answers "locally" the .doc saves to their HD wherever they want, but
if the user answers "Server", the .doc would already "know" the URL and path
to the target folder (maybe because this info was embedded in the Custom File
Properties of the Template) and therefore it would automatically look to the
Web, parse the destination URL from its Custom File Property, and initiate a
connection that would trigger the usual login/password dialogs. Once past
those dialogs, the file would 'know' the path to the target folder and simply
save to that location.

Can this kind of functionality be accomplished by a combination of Word
macros (to store the target folder path in Custom File Properties and to
modify the file/save dialogs) or would it require some rather heavy-duty
VBasic programming?
 
S

Shasur

You can use document variables to store the value in the document and
retrieve it later

Sub Add_Doc_Var_Checked()

ActiveDocument.Variables("FileSave").Value = "c:\temp\sample.doc"

End Sub
 

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