Option Explicit
Sub test()
Dim cn As ADODB.Connection
Dim cat As adox.Catalog
Dim tbl As adox.Table
Dim ws As Worksheet
Set cn = New ADODB.Connection
Set cat = New adox.Catalog
With cn
.Provider = "Microsoft.ACE.OLEDB.12.0"
.ConnectionString = "Data Source=" & ThisWorkbook.Path & "\CatalogTest.xlsm;" & _
"Extended Properties=Excel 8.0;"
.Open
End With
cat.ActiveConnection = cn
For Each tbl In cat.Tables
Debug.Print tbl.Name
Next tbl
Set cat = Nothing
cn.Close
Set cn = Nothing
End Sub