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
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