Welcome to SolidWorks forums Julius.
Check the required macro. You may have to fix the libraries. Finally edit the macro as required.
To fix libraries, open the macro (Tools > Macro > Edit). Go to references, uncheck the three highlighted libraries in the picture or missing libraries and select same for your version of SolidWorks.
You might also find this post helpful for your future reference
Thank you very much Deepak. Its work perfectly.
I have one little problem with this macro.
If I have something write in custom properties and I run your macro, it dont rewrite last value.
How I can edit macro for write or replace value ?
Thanks you very much for answer and sorry of my bad english.
You mean if there is any value or custom property exist in the file, the macro doesn't overwrite that value or property.
For example I have file with custom properties
and I change name of file, run macro and it doent rewrite Name to new name.
Or my college edit my part1, run them macro and I would like rewrite name Michal to name Julius.
Thank you very much,. I will test it