SolidWorks Macro to save all models in a drawing to step files

Hi,

I have a drawing files with 15 - 25 sheets in them and on most sheets there is a drawing of a single part but some have multiple. I want to generate a STEP file from every part, and want every STEP to have the same name as it's original part. I Have tried to use some of the macros I have found online but they only save the first model it grabs as a step file and doesn't iterate through each page. Any help with something that would work would be appreciated. 

Thanks!