jmthompson
Well-known Member
- Joined
- Mar 31, 2008
- Messages
- 966
Good morning,
I am within millimeters of finishing a massive macro. I want to close my macro with code to generate a prompt upon completion of the macro to have the user "Save As" since I don't want them ruining my lovely template.
Since this template will be going to multiple users, each with different requirements for the new name and destination for the new file, I would like the macro to have the user enter the file name and for the default destination to be either wherever they've saved the template originally or for the user to enter that information.
I searched the board and found this code to prompt the user to enter the file name, but it lists a known destination for the file. Any ideas on how to doctor it to perform as I desire?
Dim strFileName As String
strFileName = InputBox(Prompt:="Please enter the file name.", Title:="Save As", Default:="Partner Program Report AXA")
"\\svrau100qsm01.com\Reports\Partner Reporting\Partner Flows\" + strFileName + ".xls" _
, FileFormat:=xlNormal, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False
TIA!
I am within millimeters of finishing a massive macro. I want to close my macro with code to generate a prompt upon completion of the macro to have the user "Save As" since I don't want them ruining my lovely template.
Since this template will be going to multiple users, each with different requirements for the new name and destination for the new file, I would like the macro to have the user enter the file name and for the default destination to be either wherever they've saved the template originally or for the user to enter that information.
I searched the board and found this code to prompt the user to enter the file name, but it lists a known destination for the file. Any ideas on how to doctor it to perform as I desire?
Dim strFileName As String
strFileName = InputBox(Prompt:="Please enter the file name.", Title:="Save As", Default:="Partner Program Report AXA")
"\\svrau100qsm01.com\Reports\Partner Reporting\Partner Flows\" + strFileName + ".xls" _
, FileFormat:=xlNormal, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False
TIA!