User Form in VBA macros

when i try to insert user form in VBA macros my solid work 2017 crashes automatically? please help me to solve this problem.

SolidworksApi macros