The ADO MD Cellset object contains the results of an MD query.

Basic Usage

Here is VBS code that prepares the Cellset object for use:

'Connect the same way you would connect the Catalog object.
Set cst1.ActiveConnection = cat1.ActiveConnection

'Specify the MD query with an MDX (Multidimensional Expressions) expression.
strSource = "SELECT " & _
            "{[Measures].members} ON COLUMNS, " & _
            "NON EMPTY [Store].[Store City].members ON ROWS " & _
            "FROM Sales"
cst1.Source = strSource

'Populate the Cellset object.
cst1.Open()

Object Members

Properties Collections Methods Events
  1. ActiveConnection
  2. FilterAxis
  3. Item
  4. Source
  5. State
  1. Axes
  2. Properties
  1. Close()
  2. Open()
  1. (None)

FilterAxis returns an Axis object for the dimensions used to filter (slice) the Cellset. The Axis returned by the FilterAxis property is not contained in the Axes collection.

Item returns a Cell object of the Cellset using coordinates. The Item property is the default property for the Cellset object, ie the following syntaxes are equivalent:

cst1.Item(Positions)
cst1(Positions)

Positions is a variant array that can be one of the following:

State returns a read only long integer for the connection state of the Cellset: 0 (adStateClosed) or 1 (adStateOpen).

Page Modified: (Hand noted: 2007-10-10 19:52:14Z) (Auto noted: 2007-11-17 06:47:27Z)