Choose the same part in assembly

Choose the same part in assembly

Select the macro to the same parts in assembly

SolidworksAssemblies