I\'m trying to get a list of all tables from an Access 2007 ACCDB format database using Excel VBA.
I have followed this post:
How can I get table names from
Use the DAO tabledefs collection
Sub TableDefs() Dim db As dao.Database Dim tdfLoop As dao.TableDef Set db = CurrentDb With db Debug.Print .TableDefs.Count & " TableDefs in " & .name For Each tdfLoop In .TableDefs Debug.Print " " & tdfLoop.name Next tdfLoop End With End Sub