Learning custom properties macro question

I read the post

https://forum.solidworks.com/thread/173531

I want to know how I can link a VB UI to those code.

Moreover, should I save those code in dll, swb or swp?

Would someone please create a quick example to show?

Thanks

SolidworksApi macros