Hi,

Please check. Hope this will help you to resolve the issue.

auto macro run example.zip