Skip to main content
100%

Gist 40be33d9a867660bd732

✓ Published0🌍 Public
Aandybak
Last edited Aug 16, 2014
Created on Aug 16, 2014

This example shows how to export every user table from an Access database to a single Excel workbook. The VBA macro iterates through all table definitions, skipping system tables whose names start with “MSys.” For each remaining table, it calls `DoCmd.TransferSpreadsheet` to export the table’s data into the file `excel_out.xls`, using the `acSpreadsheetTypeExcel9` format. It replaces the `dbo_` prefix in table names when creating the destination worksheet names. The output file path is derived from the current project’s directory.

AI-generated description

Similar vizzes