It appears you copied my macro inside something you already had there. Delete everything ABOVE the Option Explicit and try it again.