PDA

View Full Version : Read the Server Drafts Location



evamads
01-05-2010, 07:23 AM
Hello,

I am trying to pick up the Server Drafts Location (from Word-Options, Save, Offline editing options for document management server files) to ensure, that a document is saved in that location.

I have tried with this code, but it does not give the correct path :banghead: :


Dim MyDocParth as string

MyDocPath = Options.DefaultFilePath(Path:=wdServerDrafts)

Any suggestions to what the command (wdServerDrafts) can be?

Regards,
Eva

TonyJollans
01-05-2010, 11:01 AM
This detail is Office-wide, not just a Word option, and is stored in the registry in HKCU\Software\Microsoft\Office\Common\Offline\Options