the best place to get examples is in the API help file you can usually find this in "C:\Program Files\SOLIDWORKS Corp\SOLIDWORKS\api\sldworksapi.chm"
but it is also online at http://help.solidworks.com/2018/english/api/sldworksapi/ It helps knowing kind of what you want the macro to do because you can find example by API functions for example if you want to change configuration properties here is the example http://help.solidworks.com/2018/english/api/sldworksapi/change_configuration_properties_example_vb.htm Using the API help resources also gives you the explanation of how to use the code and what options are available for that code.