I have an Access database with ~30 tables.
How can I export all 30 tables into separate sheets in an Excel workbook?
I'm hoping to find some VBA/VBS code which I can run from within Access to accomplish this task.
Any ideas?
I have an Access database with ~30 tables.
How can I export all 30 tables into separate sheets in an Excel workbook?
I'm hoping to find some VBA/VBS code which I can run from within Access to accomplish this task.
Any ideas?
Here is formated and fixed version of above code. We don't need MSys tables in excel file and dbo prefix in sheet names. Export also can be made relative to MS Access db or fixed.
Here is code:
Here's the full module I used.
You should be able to do something like this:
The second
tbl.name
is the worksheet name.