Is there a SW tool to replace multiple parts in multiple assemblies automatically?

 

I have hundreds of assemblies with the "old fasteners" that need to be replaced by "new fasteners". I understand that SW allows me to replace parts and every instance of a part, but is there a way to automate this already, before I write my own VBA script? I doubt that such a tool exists, so I will begin by painstakingly using artificial intelligence to write me the VBA code using SW API and tailoring it to my application. Even if the SW API included a function for replacing a part, that would get me going in the right direction. thanks for any advice!