Downloaded Macro/Script Example not working

Works perfectly!

Thanks very much for this. It’s going to be a great help.