Not that I know of. The CopyFromRecordset method of the Excel library was probably added well before DataTables were in use, and ADO goes will with VBA, which is what Excel uses. You should be able to write a function to loop through the DataTable and Excel cells.
Yeah, MS didn't want you to eaily work back to a recordset from a DataTable, but you can fill a DataTable from a recordset. Like RiverGuy said the only way is to loop through.
-I hate Microsoft!
-Forever and always forward.
-My kingdom for a edit button!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.