Open you workbook. Click on Alt + F11. In the left window, click on the worksheet you wish the code to be in. In the right window that opens, paste the code I have provided. Save and close as an .xlsm file. Voila!!
oops! Instead of clicking on the worksheet in the left window, I should have told you to click on the "This Workbook" in the left window and then paste into the right window that appears. My apologies.