VBA - Retrieve Configuration Names in a Solidworks Assembly

Hello 

Is there a VBA command to retrieve the names of assemblies' configurations in order to navigate between them? The goal is to automatically save the assembly on each config.

Thank you for your help:)

Hello

See my tutorials that I posted on Lynkoa about configurations:

     - Save a configuration for each room:

    http://www.lynkoa.com/tutos/3d/enregistrer-une-piece-chaque-configuration       

     - Enable the promote option for all configurations:

    http://www.lynkoa.com/tutos/solidworks/macro-pour-toutes-les-configurations-d-un-assemblage-pour-activer-l-option-%E2%80%9Cpromouv       

 

I advise you to adapt the first macro, because it already does almost what you want!

 

Hello

See this Solidworks API link:

http://help.solidworks.com/2012/English/api/sldworksapi/Get_Name_of_Active_Configuration_Example_VB.htm

Thanks to both of you, I managed to do what I wanted by combining your two answers.