I have much the same question:
DOES ANYONE KNOW HOW TO CHANGE THE DEFAULT FILENAME THAT APPEARS IN THE SAVE AS DIALOG BOX IN Microsoft WORD?
My goal is to present the PossibleFileName to the user in the SaveAs dialog box. PossibleFileName will be generated by other parts of the code. The user can then view and change this to a ChosenFileName within the SaveAs dialog box.
The GetSaveAsFileName application does not work in Word.Code:'The following code will display the Microsoft Word Save As dialog box 'but unfortunately doesn't allow the default file name to be changed. 'Its default is the filename of the document which contains the control 'which launched it. Dialogs(wdDialogFileSaveAs).Show 'The following code will save the document, but unfortunately doesn't 'show the Save As dialog box first. ActiveDocument.SaveAs ChosenFileName, xlDocumentNormal ' IN MICROSOFT EXCEL, THIS IS RELATIVELY EASY TO DO ' WITH CODE LIKE THE FOLLOWING: ChosenFileName = Application.GetSaveAsFilename_ (PossibleFileName, "Excel Files (*.xls),*.xls,", , "Title") ActiveWorkbook.SaveAs ChosenFileName, xlWorkbookNormal
Does Anyone know of how to control the Dialogs(wdDialogFileSaveAs) in Word to change the filename it first shows?



Reply With Quote
Bookmarks