ModelConnection.CommandType property (Excel)

Returns or sets one of the XlCmdType enumeration constants. Read/write.

Syntax

expression.CommandType

expression A variable that represents a ModelConnection object.

Remarks

For a ModelConnection object, this type will be set to either xlCmdTable or xlCmdDAX. The isolated connection ThisWorkbookDataModel to the data model will be of type xlCmdCube.

Property value

XLCMDTYPE

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.