Name

querytable.CommandType[= setting]

Synopsis

Sets or returns the type of command string used by the specified query table. The type can be xlCmdSQL, a SQL string (default); xlCmdCub, a cube name for an online analytical processing (OLAP) data source; xlCmdDefault, command text that the OLE DB provider understands; or xlCmdTable, a table name for accessing OLE DB data sources.

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.