you put this in WORKBOOOK OPEN event
press ALT-F11 to get to VBE\
in the left pane, dbl-click THISWORKBOOK
in the right pane, paste the code.
(it will run at open)