Excel registers an ODBC driver. This allows you to access it as a database with (limited) SQL. See MSDN
] for the API reference. I think I have some ODBC code laying around somewhere if you are having trouble with it, but have a go yourself first.
check out the Databases
] section here on codeproject.