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 |
---|---|
|
The name of the OLAP cube |
|
A query string defined by the OLE DB provider |
|
A SQL SELECT command |
|
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.