I have a form which has the file folder location contained in a file called Document Location. On the form is a button which runs a macro to export a report in Word format.
All works well, except the Macro prompts the user for the save location for the file, and defaults to the name of the report.
Is there any way to :
1) grab the document location from the Form
2) change the filename of the file being saved to represent say the record number on the form
The save the file in this location under this name without prompting the user? Or is it better not to use a macro but write some VB code to export the report in Word format?
All works well, except the Macro prompts the user for the save location for the file, and defaults to the name of the report.
Is there any way to :
1) grab the document location from the Form
2) change the filename of the file being saved to represent say the record number on the form
The save the file in this location under this name without prompting the user? Or is it better not to use a macro but write some VB code to export the report in Word format?