DataFeedConnection.CommandType procedure builder

DataFeedConnection.CommandType (Excel)

Returns or sets the command string for the specified data source.

Possible Values are xlCmdCube - Contains a cube name for an OLAP data source, xlCmdDAX - Contains a Data Analysis Expressions (DAX) formula, xlCmdDefault - Contains command text that the OLE DB provider understands, xlCmdExcel - Contains an Excel formula, xlCmdList - Contains a pointer to list data, xlCmdSql - Contains an SQL statement, xlCmdTable - Contains a table name for accessing OLE DB data sources, xlCmdTableCollection - Contains the name of a table collection.
ActiveWorkbook.Connections(1).DataFeedConnection.CommandType = xlCmdCube