问题
I would like to know how to get the list of the workbook connection names in Excel using VBA.
回答1:
This will print all of the connection names to the debug window.
Dim conn As WorkbookConnection
For Each conn In ActiveWorkbook.Connections
Debug.Print conn.Name
Next conn
来源:https://stackoverflow.com/questions/8273062/get-workbook-connection-names