I'm working on an Excel Template that gets external data via an ODBC query. That part is working fine. I'm trying to make the template refresh the ODBC data (run the query) automatically when the Excel file is first opened. I am thinking I need an Excel macro that is set up to run when the Excel file is opened. I can record a macro and open it for editing in MS Visual Basic, but beyond that, I know nothing about MS Visual Basic (I may need a bit of detailed help editing the macro script). Thanks in advance for any help.