I don't reckon you can force a file to be named a certain way once in the save as window, but maybe you could work something out with input boxes.
Code:
val1 = InputBox("Write 2 letters")
val2 = InputBox("Write 2 numbers followed by two letters followed by 2 numbers")
val3 = InputBox("Write 2 letters")
And then save it as ""&val1&"-"&val2&"-"&val3&" BOM.filetype"
You could then add some checks to determine if the user wrote exactly the amount of symbols which is required.
Of course, this is not a very elegant way, so if someone else has a better option..
We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel
Which adblocker are you using?
Disable AdBlock
Follow these easy steps to disable AdBlock
1)Click on the icon in the browser’s toolbar. 2)Click on the icon in the browser’s toolbar. 2)Click on the "Pause on this site" option.
Go back
Disable AdBlock Plus
Follow these easy steps to disable AdBlock Plus
1)Click on the icon in the browser’s toolbar. 2)Click on the toggle to disable it for "mrexcel.com".
Go back
Disable uBlock Origin
Follow these easy steps to disable uBlock Origin
1)Click on the icon in the browser’s toolbar. 2)Click on the "Power" button. 3)Click on the "Refresh" button.
Go back
Disable uBlock
Follow these easy steps to disable uBlock
1)Click on the icon in the browser’s toolbar. 2)Click on the "Power" button. 3)Click on the "Refresh" button.