Using Word I have created a template form (.dot) with 'text form fields' for users to enter text. One of these fields is called OrderNo. Word has automatically made them bookmarks.
I have created a command button which i want users to click which will save this document in a specific folder. I want the new document name to include the text which was entered in the OrderNo bookmark.
Is there a way of getting this data?
(I'm not very good at code so i've included what i've done for some kind person to modify for me!)
Private Sub CommandButton1_Click()
ChangeFileOpenDirectory_ "\\Server\WORK\Projects\Templates\PurchaseRequests\"
ActiveDocument.SaveAs FileName:="PurchaseRequestForm" & "OrderNo" & ".doc",
MsgBox (" Saving file in: Server1\WORK\Projects\Templates\PurchaseRequests"
End Sub
Thanks
I have created a command button which i want users to click which will save this document in a specific folder. I want the new document name to include the text which was entered in the OrderNo bookmark.
Is there a way of getting this data?
(I'm not very good at code so i've included what i've done for some kind person to modify for me!)
Private Sub CommandButton1_Click()
ChangeFileOpenDirectory_ "\\Server\WORK\Projects\Templates\PurchaseRequests\"
ActiveDocument.SaveAs FileName:="PurchaseRequestForm" & "OrderNo" & ".doc",
MsgBox (" Saving file in: Server1\WORK\Projects\Templates\PurchaseRequests"
End Sub
Thanks