I don't know anything about macros, but I'd suggest moving this Discussion to the API section of the forum. The people who could help you would be more likely to see it there. Please don't start a new Discussion, just click on "Move" in the Actions section at top right.
Basically you'll have to save the existing part files with the new name. Can you add one part file as sample.