To run the macro , click the button with the symbol for pi , on the Quick Access Toolbar (QAT). The macro will run on which ever is the worksheet which is activated when the button is clicked.
I assume that all worksheets will have data in the same layout.