ModelConnection.CommandType Property (Excel)
Returns or sets one of the XlCmdType Enumeration (Excel) constants. Read/Write
expression A variable that represents aModelConnection Object (Excel) object.
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 .