help me convert to vba

hey guys and gals,

i have this macro in vb.net and i want to turn it into vba so that i can run batch process on it. Also i want to add in some code to make edrawings export the assemblies and drawings.  basically this macro, if you have a drawing open, will export 3 pdfs.  these drawings range in size.  the first pdf export all the drawings, the second pdf is just of the first sheet and the third and final pdf exports sheets 2 and 3.  it works like a champ in vb.net but i cant figure out the vba side. especially the function part. any help would be greatly appreciated.  im not to worried about the edrawings part cuz i can get task scheduler to do that.

 

SolidworksApi macros