If you want to use a macro that affects a large number of documents the best way to do it is to export the documents concerned, run the macro, save the result, and import the documents back into the ITP/MDK Repository with the `Make revision´ option enabled for documents that already exist in the ITP/MDK Repository.
Be aware that you can only put all documents back in one import action if all files came from the same folder. Otherwise you have to repeat the import for each source folder.