Just put that code in a macro that you call "mymacro" in a module and put the name of the macro on the part "your code here" :

mymacro