Hello,
You have multiple choices.
By default, Excel permit us to run a Macro or VB code at startup.
You can browse the Excel help to find the exact procedure. Here are the title you may search for:
- Create a VBA procedure for the Open event of a workbook
- Create an Auto_Open macro
And according the the Excel Help file:
If the workbook where you save the Auto_Open macro already contains a VBA procedure in its Open event, the VBA procedure for the Open event will override all actions in the Auto_Open macro.
An Auto_Open macro is ignored when a workbook is opened programmatically by using the Open method.
An Auto_Open macro runs before any other workbooks open. Therefore, if you record actions that you want Excel to perform on the default Book1 workbook or on a workbook that is loaded from the XLStart folder, the Auto_Open macro will fail when you restart Excel, because the macro runs before the default and startup workbooks open.
If you encounter these limitations, instead of recording an Auto_Open macro, you must create a VBA procedure for the Open event
Main Topics
Browse All Topics





by: thydzikPosted on 2009-10-22 at 22:59:01ID: 25641592
have a look at the attached file.
solution