• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 320
  • Last Modified:

Word 2003 Default Save Name

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

0
Knowledge01
Asked:
Knowledge01
1 Solution
 
GrahamSkanRetiredCommented:
You need to use this macro. Note that the name is important
Sub FileSaveAS()
    With Dialogs(wdDialogFileSaveAs)
        .Name = ActiveDocument.FormFields("Name").Result
        .Show
    End With
End Sub

Open in new window

0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now