Auto SaveAs with certain filename

  • Hi all,


    I am working on a template. Users should open this template and then make some changes and save it as "Invoice 01", "Invoice 02", "Invoice 03", etc.
    Is there any way to change the name (usually "doc1.doc") that Word suggests in the "File-Save As" window to something different?


    Thank you all for any help,

    Best,


    Balangan

  • Re: Auto SaveAs with certain filename


    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.
    Does Anyone know of how to control the Dialogs(wdDialogFileSaveAs) in Word to change the filename it first shows?

  • Re: Auto SaveAs with certain filename


    If you look in help you will see that the FileSaveAs dialog can take the following
    arguments.

    Quote


    Name, Format, LockAnnot, Password, AddToMru, WritePassword, RecommendReadOnly, EmbedFonts, NativePictureFormat, FormsData, SaveAsAOCELetter, WriteVersion, VersionDesc


    Perhaps something like this.

    Code
    With Dialogs(wdDialogFileSaveAs)
        .Name = "mydoc.doc"
        .Show
    End With

    Boo!:yikes:

  • Re: Auto SaveAs with certain filename


    Thank you,


    I found that this works:


Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!