Microsoft Office 2000/Visual Basic Programmer's Guide   

Running Code Automatically When an Excel Add-in Is Loaded or Unloaded

To automatically run code when an Excel add-in is loaded, you have two choices:

Keep in mind that if you want an add-in to load automatically when Excel starts up, you must save it in the C:\Windows\Application Data\Microsoft\Excel\XLStart subfolder or, if the system is using user profiles, in the C:\Windows\Profiles\UserName\Application Data\Microsoft\Excel\XLStart subfolder. If the add-in is not saved in this folder, it is not loaded when Excel starts, and neither the Auto_Open nor Workbook_Open procedure will run.