On the other hand, you shouldn't add other subfolders, or add a line of code, but you should do several macros per number of levels right? otherwise error.
Indeed, if you have a sub-folder in your client file, it doesn't work anymore! But another macro could work in any case! Another question?
And I had thought that you might already have a property named client that would conflict, but I forgot to say it! It works, that's the main thing (even if the code is not super optimized).
Ag that yes it works, the rest, I would tell you that I don't care^^
In my opinion, it would be better to make a macro to retrieve the name of the folder where the part is saved as "deal" properties and the top-level folder for "Client".
Because here we are doing the opposite, right? We take the complete path and then we go to the left (2nd sub-folders, 3rd etc....)