Model.CreateModelWorkbookConnection method (Excel)

Returns a WorkbookConnection object of type ModelConnection.

Syntax

expression.CreateModelWorkbookConnection (ModelTable)

expression A variable that represents a Model object.

Parameters

Name Required/Optional Data type Description
ModelTable Required Variant Either a model table name or a model table object.

Return value

WORKBOOKCONNECTION

Remarks

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

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.