You can put it in another workbook and then just make sure that this other
workbook is open when you need the code.
Lots of people who need this functionality, put their code into a workbook named
personal.xls and then save that personal.xls into their XLStart folder.
By placing the personal.xls workbook there, it's opened each time you start
excel.