Word 2003 Default Save Name

Posted on 2009-02-09
Last Modified: 2013-11-10
I have a form field in a word 2003 template that is called Name and people type thier name in the field.  I assigned this field a bookmark called name.  How can I take this field and make it the default file name.  When you click save I want the default file name to be whatever was in the name field.

I know I need to use Macros and I am guessing I want to put the macro code in Save and Save As macros.
I dont know the proper coding, but this is an example of what I want.

When you click Save or Save As

Take whatever is in the name field (This is bookmarked as name)

name = whatver the persons name is

assign name to default file name

Open in new window

Question by:Knowledge01
    1 Comment
    LVL 76

    Accepted Solution

    You need to use this macro. Note that the name is important
    Sub FileSaveAS()
        With Dialogs(wdDialogFileSaveAs)
            .Name = ActiveDocument.FormFields("Name").Result
        End With
    End Sub

    Open in new window


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Suggested Solutions

    Using Word 2013, I was experiencing some incredible lag when typing.  Here's what worked for me....
    Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
    Learn how to create and modify your own paragraph styles in Microsoft Word. This can be helpful when wanting to make consistently referenced styles throughout a document or template.
    This Micro Tutorial well show you how to find and replace special characters in Microsoft Word. This is similar to carriage returns to convert columns of values from Microsoft Excel into comma separated lists.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now