プライマリ・コンテンツへ移動
Oracle® Smart View for Office開発者ガイド

E88265-01
目次に移動
目次

前
次

HypGetCellRangeForMbrCombination

データ・プロバイダ・タイプ: Oracle EssbaseOracle Hyperion PlanningOracle Planning and Budgeting CloudOracle Hyperion Financial Management

説明

HypGetCellRangeForMbrCombination()は、選択したメンバーの組合せのセル範囲を取得します。

構文

HypGetCellRangeForMbrCombination (vtSheetName, vtDimNames, vtMbrNames, vtCellIntersectionRange)

By Val vtSheetName As Variant

ByRef vtDimNames As Variant

ByRef vtMbrNames As Variant

ByRef vtCellIntersectionRange As Variant

パラメータ

vtSheetName: 関数を実行するワークシートの名前。vtSheetNameがNullまたはEmptyの場合、アクティブなワークシートが使用されます。

vtDimNames: 入力変数。ディメンション名の配列

vtMbrNames: 入力変数。ディメンションに対応するメンバー名の配列(同じ順序)

vtCellIntersectionRange: 出力変数。グリッドのセルの範囲

戻り値

正常に終了した場合はSS_OKを戻し、それ以外の場合は該当するエラー・コードを戻します。

Public Declare Function HypGetCellRangeForMbrCombination Lib "HsAddin" (ByVal vtSheetName As Variant, ByRef vtDimNames() As Variant, ByRef vtMbrNames() As Variant, ByRef vtCellIntersectionRange As Variant) As Long
Sub Example_HypGetCellRangeForMbrCombination()

		Dim oRet As Long
		Dim oSheetName As String
		Dim oSheetDisp As Worksheet
		Dim vtDimNames(3) As Variant
		Dim vtMbrNames(3) As Variant
		Dim vtReturnCellRange As Variant
		Dim oRange As Range
	
		'oSheetName = Empty
		'Set oSheetDisp = Worksheets(oSheetName$)

		vtDimNames(0) = "Measures"
		vtDimNames(1) = "Market"
		vtDimNames(2) = "Year"
		vtDimNames(3) = "Product"
		'vtDimNames(4) = ""

		vtMbrNames(0) = "Sales"
		vtMbrNames(1) = "New York"
		vtMbrNames(2) = "Year"
		vtMbrNames(3) = " Product"
		'vtMbrNames(4) = ""

oRet = HypGetCellRangeForMbrCombination ("", vtDimNames, vtMbrNames, vtReturnCellRange)

If (oRet = 0) Then
    Set oRange = vtReturnCellRange
End If
End Sub