Hi,
I tried to use this macro from CodeStack :https://www.codestack.net/solidworks-api/document/cut-lists/rename-cut-list-bodies/
But when I use it I have this message pointing to this line of the VBA program
As anyone have a suggestion to debug the macro?
Thanks!

It could be that "Bodies" is no an array - yet and it's set to "Empty". Seems it's poorly written without possible error checking. I assume if there are no bodies on the document it would throw this error.
I would write before this error:
if bodies is empty then exit sub
You prob have created a sub-weldment. Could you check?
The list of bodies for the cut-list-item folder will be empty when you have created a sub-weldment folder. wich will result that error message.