Name

pivotcache.CommandType [= xlCmdType]

Synopsis

For pivot caches based on database queries, sets or returns the type of command used in CommandText as described in the following table.

Setting

CommandText is

xlCmdCube

The name of the OLAP cube

xlCmdDefault

A query string defined by the OLE DB provider

xlCmdSql

A SQL SELECT command

xlCmdTable

A table name from the data source

You can set CommandType only if QueryType is xlOLEDBQuery.

Get Programming Excel with VBA and .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.