vba in solidworks

Hello.

There is a great youtube video on how to use VBA in AutoCad.

AutoCAD VBA Programming Tutorial - YouTube

Can someone tell me how to do the same in SolidWorks?

What do I change to get it to work in SolidWorks?

Regards Magnus

SolidworksApi macros