ModelConnection.CommandType Property (Excel)

Returns or sets one of the XlCmdType Enumeration (Excel) constants. Read/Write

Syntax

expression. CommandType

expression A variable that represents aModelConnection Object (Excel) 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

See also

ModelConnection Object