Hi,
Just an update on this. I thought I would try this in Access so added the following code to test this:
Set conn = New ADODB.Connection
conn.Provider = "MSDataShape"
conn.Open "Data Source=Test"
Set rs = New ADODB.Recordset
rs.Open shape, conn, adOpenStatic, adCmdText
rs.Save "C:\Temp\ADO\cust.xml", adPersistXML
rs.Close
Set conn2 = New ADODB.Connection
conn2.Open "Provider=MSPersist"
Set rs2 = conn2.Execute("C:\Temp\ADO\cust.xml")
Set TableSchema = conn2.OpenSchema(adSchemaColumns)
This results in the same error code as Excel but gives a much more meaningful message "Run-time error 3251: Current provider does not support schema recordsets".
So even though Microsoft go to the trouble of providing a persisted connection to access files persisted by them which include the schema, you are not able to gain access to the schema.
Very frustrating,
Dominic