on 06-12-2006 10:48 PM
I would like to be able manipulate hierarchy information using vba and determine the levels within to retrieve data. How do I know if the current cell in workbook represents a node or leave within a hierarchy?
Thnak you for assistance with this issue.
Welcome to SDN, Loren!
My 2 cents to what Peter said:
You may use IndentLevel of Worksheet.Range object. It identifies the hierarchy level. Go through debug and you'll get a clear picute of it.
Best regards,
Eugene
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Loren,
There might not be a "best way" to do this. I can tell you one way that will work. You can test to see if an OLAP function related to the hierarchy is valid for that cell. For example:
retVal = Run("sapbex.xla!SAPBEXcheckContext", "HIRT", ActiveCell)
If the retVal is 0, then the "expand hierarchy" command is valid for that cell.
- Pete
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.