I'm creating a form in MS Word for our customer service reps to fill out and then I want to have a submit button at the bottom of the page that will run a macro to automatically save the file in a desired directory and to use the customer's name as the file name. Is there a code to pull the information entered into a form text field and use it as the filename? This is what I have so far:
Private Sub SUBMIT_Click()
ChangeFileOpenDirectory "Y:\Form Upload\"
ActiveDocument.SaveAs FileName:=Range("A1").Value & Format(Date, "mmdd"), FileFormat:=wdFormatDocument, _
LockComments:=False, Password:="", AddToRecentFiles:=False, WritePassword _
:="", ReadOnlyRecommended:=True, EmbedTrueTypeFonts:=False, _
SaveNativePictureFormat:=False, SaveFormsData:=False, SaveAsAOCELetter:= _
False
End Sub
...it should be noted I borrowed this from an excel, so I have the old file parameters in there