开发者

extracting connection string from .odc file

I have a .odc file. I would like to extract the connection string from this throu开发者_如何学Pythongh VBA code.


You could access through connections object in excel

ThisWorkbook.Connections.Item(1).OLEDBConnection.Connection
ThisWorkbook.Connections.Item(1).ODBCConnection.Connection

ODC file shares the same information. If you are still interested in parsing .odx file you could do with XML parser.

Hope that answers your query

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜