Model.CreateModelWorkbookConnection (Excel)

Returns a WorkbookConnection object of type ModelConnection.

This type of connection can only be used by query tables in Excel.

CreateModelWorkbookConnection (ModelTable)

ModelTable: Either a model table name or a model table object.


Dim wbconCreateModelWorkbookConnection As WorkbookConnection
Set wbconCreateModelWorkbookConnection = ActiveWorkbook.Model.CreateModelWorkbookConnection(ModelTable:=)