- Open Excel
- Press Alt+F11
You will now be in the VBA IDE.
To run something on Auto Open:
Select ThisWorkbook
From the VBAProject in Project Explorer on the Left of your screen
There are Two drop downs near the top of the window one will say (General)
and The other (Declarations)
click on (General)
and select workbook
Excel should automatically bring you to the Open
declaration.
Anything written in this sub will execute on open.