Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Word Doesn't Call Document Properties Dialog on Save 1

Status
Not open for further replies.

gallas

Technical User
Feb 5, 2002
55
GB
We have a macro that opens a template runs some stuff and then opens the SaveAs dialog to give the user opportunity to save before starting work. We want the document properties dialog to pop up on save but cannot find out how to achieve this. Below is this part of the code. Even with SavePropertiesPrompt = True we have no joy. Any ideas?

Sub SetEnvSave()

Application.DisplayStatusBar = True
ActiveWindow.View.ShowBookmarks = False
Options.SavePropertiesPrompt = True

Set aDialog = Dialogs(wdDialogFileSaveAs)
aDialog.Show
' dlgAnswer = Dialogs(wdDialogFileSaveAs).Show

' The following updates filename field in doc

Selection.WholeStory
Selection.Fields.Update
Selection.Collapse

End Sub
 
Maybe you can use this:

Set bDialog = Dialogs(wdDialogFileSummaryInfo)
bDialog.Show

ilses
 
Tks Ilses, code works fine. A pity that company field is not shown in summary. There doesn't seem to be a dialog for all summary / all file properties.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top