Macro to create one sheet per configuration

Hello,
I am looking for a solidworks macro to be able to create one sheet with cut list (from a sldprt, not from assembly) per configuration.
I found one here, but it doesn't works and I know absolutly nothing about vba/macro.
https://www.javelin-tech.com/blog/2019/11/solidworks-drawings-macro-part-configurations/

In case somebody is able to get it running.... Thanks

1 Answer

Found that one too but it doesn't works neiher.
https://www.codestack.net/solidworks-api/document/drawing/propagate-configurations-sheets/
I got an error on GetActualReferencedConfiguration = swConf.Name