Sam, In your sample
VB you are using code in an Excel File to access data from another XLS file. At least that is how the path is defined. Geert's original post stated a problem in accessing Excel from MS Access 97.
From the code you posted the path to the data file is being set on this line partly:
filepath = Left(ActiveWorkbook.FullName, InStrRev(ActiveWorkbook.FullName, "\"))
This is setting the path of the active file to identify the path of the sorce file. In otherwords you must (1) ensure both files are in the same directory. (2) be sure the active XLS file is a file in the same directory as your data file at the time the code is executed. Most likely you will be running the code in the active file.
You may want to look into doing this using ADO (ActiveX Data Objects) it gives you a lot more control and is faster than ODBC.
You need to add references to your project for "OLE Automation" and Office 11 Data Objects. You can use many standard ADO commands in Excel
VB.
http://www.w3schools.com/ado/ado_ref_command.asp