Drawing BOM template automatic update with new one

Hello,

Does anyone know how to update drawing BOM template with new one in batch or if there is a macro to do this?

Thank you in advance.

SolidworksDrawings And Detailing