Macro to set the deletion state & config of a part in an assembly

Hello

I have a new problem, I have an "Assembly A" with four configs (A1, A2, A3, A4), in this assembly I have three parts "P1, P2, P3" each part has two configs "P1a, P1b, P2a, P2b, P3a, P3b" all the parts are in a deletion state. 

I would like, if possible, to have a macro that can "cancel the deletion state" of the part "P2" in the configs (A1, A2, A3, A4) of "Assembly A".

Then have a macro that selects the "P1a" config of the "P1" part in all the configs (A1, A2, A3, A4) of "Assembly A".

When I record a macro it only works on the A1 config, can you help me?

 

Hello

See if the utility HERE meets your needs.

Kind regards

Your solution seems to match my problems but unfortunately I can't install it (protection). 

Yes, it's an executable file so either trust and exclude from the antivirus scan or no trust and too bad!!

Kind regards