I copied a macro to run an Access macro from Excel from a course spreadsheet (Excel & Access Integration with Office 2007 by Alexander & Clark) into a spreadsheet. When I step into execution in my new spreadsheet, I get a "Compile Error: User-defined type not defined" See attached file. When I step into it from the course file, it works - see attached file no error. What needs to be done to get it to run in my spreadsheet? The code is in both attached files.