D
Dan Ricker
I'm not sure what you mean by "create an object"
The Code pivottable1.activedata.columnaxis.columnmember
returns and object.
In the client code if you run
Msgbox TypeName
(pivottable1.activedata.columnaxis.columnmember) the alert
will be displayed with "PivotColumnMember" as the text.
Under ColumnMember, you have .ChildMembers for accessing
the children of that object.
One general comment. For both the Row and Column, there is
a "dummy" top level "PivotMember" this is done to provide
a consistent point of entry for recursing the Row/Column
Member trees.
The Code pivottable1.activedata.columnaxis.columnmember
returns and object.
In the client code if you run
Msgbox TypeName
(pivottable1.activedata.columnaxis.columnmember) the alert
will be displayed with "PivotColumnMember" as the text.
Under ColumnMember, you have .ChildMembers for accessing
the children of that object.
One general comment. For both the Row and Column, there is
a "dummy" top level "PivotMember" this is done to provide
a consistent point of entry for recursing the Row/Column
Member trees.