How do I set the Custom Property Tab Template from a VB Macro?

Can't seem to record macro of when you select a Custom Property Template



Now I select the template

then i get this

All the while I'm recording the Macro, even after I click the Apply button and Save!

This is what i get in the Macro

So none of the Property tab template functionallity gets recorded, I need to be able to control this in my Main Macro

that has a form with values that would auto fill the fields in the Property tab. I can fill in the Custom properties directly from

exsisting code but no Idea how to set the Property Tab Template from my VB code.

I'm using SW2013 SP05 x64bit On Win7

SolidworksApi macros