how to assign macro to command button in userform?

Hi Guys,

how to assign macro ( which is in my C drive ) to command button in userform?

If i click on Macro 1 or Macro 2 the userform should hide also.

Refer the attached Pic for reference.

SolidworksApi macros