HypFindMember
Describes the Oracle Smart View for Office VBA function, HypFindMember.
Data provider types: Oracle Essbase
Description
HypFindMember() retrieves dimension, alias, generation and level information for the specified member.
Syntax
HypFindMember (vtSheetName, vtMemberName, vtAliasTable, vtDimensionName, vtAliasName, vtGenerationName, vtLevelName)
ByVal vtSheetName As Variant
ByVal vtMemberName As Variant
ByVal vtAliasTable As Variant
ByRef vtDimensionName As Variant
ByRef vtAliasName As Variant
ByRef vtGenerationName As Variant
ByRef vtLevelName As Variant
Parameters
vtSheetName: The name of worksheet on which to run the function. If vtSheetName is Null
or Empty
, the active worksheet is used.
vtMemberName: Input parameter; the member for which to retrieve information. Required; there is no default value.
vtAliasTable: Input parameter; the name of the alias table to search for the alias name. If Null, the default alias table is used.
vtDimensionName: Output parameter; the dimension of the member
vtAliasName: Output parameter; the alias name of the member
vtGenerationName: Output parameter; the generation of the member
vtLevelName: Output parameter; the level of the member
Return Value
Returns 0 if successful; otherwise, returns the appropriate error code.
Example
Declare Function HypFindMember Lib "HsAddin" (ByVal vtSheetName As Variant, ByVal vtMemberName As Variant, ByVal vtAliasTable As Variant, ByRef vtDimensionName As Variant, ByRef vtAliasName As Variant, ByRef vtGenerationName As Variant, ByRef vtLevelName As Variant) As Long
Sub Example_HypFindMember()
X = HypFindMember(Empty, "100", "Default", dimName, aliasName, genName, levelName)
MsgBox (dimName)
MsgBox (aliasName)
MsgBox (genName)
MsgBox (levelName)
End Sub