Word default save filename and path with Sharepoint

J

Johan Verrept

Hello,

I have a problem determining the default filename whithout losing the path
to the sharepoint document library. If i just call the saveas.show, it saves
by default to the sharepoint library but i am unable to set the filename.

' Correct Path, wrong filename
Dialogs(wdDialogFileSaveAs).Show

Seting the document title also does not seem to help.

' Correct Path, wrong filename
oldtitle = ActiveDocument.BuiltInDocumentProperties("Title").Value
ActiveDocument.BuiltInDocumentProperties("Title").Value = filename
Dialogs(wdDialogFileSaveAs).Show
ActiveDocument.BuiltInDocumentProperties("Title").Value = Oldtitle

If i try to use the SaveAs filedialog, it does not seem able to find the
path to the sharepoint library.

Is there any way I can retrieve that path? I have tried

Options.DefaultFilePath(wdDocumentsPath) -- this has the correct path AFTER
calling the saveas dialog.
Options.DefaultFilePath(wdCurrentFolderPath) -- This one contains the
template document library *before the save*

Neither of them contains the correct document library to save to. Since the
path is only found correctly when the Document dialogs are used, I think it
is stored somewhere inside the document... but where?

Thank you for any hints
 

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