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.
One of the best places for CATIA help with macros is the CATIA forum on eng-tips.com. You'll find many experienced and helpful CATIA programmers there, along with many macros.
Here's a good place to start: https://www.eng-tips.com/viewthread.cfm?qid=251808
I also came across this: https://learn.scripting4v5.com/top-ten-catia-v5-macros/
Thanks Jack...
If you don't receive the email within an hour (and you've checked your Spam folder), email us as confirmation@grabcad.com