How I control the configuration of a part inserted into another part with a macro? I've tried recording a macro when I RMB the inserted part in the FM and go to 'List External Ref

How do I change/control the configuration of a part inserted into another part with a macro?

I've tried recording a macro when I RMB the inserted part in the FM and go to 'List External Ref' and then changing the configuration from there. However, the recorded macro doesn't retain any code for those steps and cannot be run back.

SolidworksConfigurations design Tables