Export to step file from selection drawing view

Hi all,

I want to use vba for my work: select 1 view in drawing file, then open part file --> save to step file --> close file (part) --> (go back drawing file) next sheet ---> ( select view --> open part......)

I think this is possible, but I'm not good at vba programming. Hope you will help me, thank you very much.

SolidworksApi/macros