Hi, what do you mean by putting the excel code to run on open? do i put the above codes inside my VBA for access? As for the <code>, it shld be the lines of macros codes that i need to run?
Thks for the sample, i actually generated a new file, eg, NEW.xls from access, then i will export n open the NEW.xls in Excel. I wan the macro to run automatically once the file opens in Excel. Since this file is newly generated, I cant possibly have codes written in it.. I can onli call macros that was written on other files, eg MAIN.XLS to be run on this file..
I tried putting the open_workbook () in MS Access, but it gives an Sub or Function not defined.