Automatic recording with VBA in a vault

Hi all

This is the purpose of my request. I am working on SolidWorks 2014 linked on a PDM server. I am in charge of a new range of standard machines. To do this, I want to make a macro that allows you to configure the standard machine with the skin that goes well. For the moment I know how to do it. But then I have to save automatically in the requested folder in a text box. The file name saved on the vault is an increment of number depending on the assemblies or parts. So the question is: how do I save the assembly automatically via a VBA macro that has the default name of the digit increment?

While waiting for an answer, I wish you all a great day.