Create a macro to save step files

I'm not sure if this is the correct forum to post this. If it is not please move it to the correct forum.

I have a bunch of models that I want to convert to step files to send to the vendor for quoting purpose. Is there any way to create a macro to do this by just selecting the files that need to be converted and a location to put the files?

SolidworksGeneral