Returns arrays containing the data in and IDs of the journal entries for a cell. The data is returned in two arrays; one array returns the data as a Double subtype and the second array returns the data as a String subtype.
The arrays have a one-to-one correspondence. For example, the third element in the journal ID array identifies the journal entry that contains the data in the third elements of the data arrays.
<HsvData>.GetCellJournalEntries lScenario, lYear, lPeriod, lEntity, lParent, lValue, lAccount, lICP, lCustom1, lCustom2, lCustom3, lCustom4, pvaradData, pvarabstrData, pvaralJournalIDs
The following example prints a cell’s journal IDs and data to the Immediate window. The example gets the member IDs of the cell’s dimension members with calls to the user-defined GetMemberID function; for details on GetMemberID, see the example for GetItemID. These member IDs are then passed to GetCellJournalEntries.
Dim lScen As Long, lYear As Long, lPer As Long, lView As Long
Dim lEnt As Long, lPar As Long, lVal As Long, lICP As Long
Dim lCust1 As Long, lCust2 As Long, lCust3 As Long, lCust4 As Long
Dim lAcct As Long, vadData, vasData, vaIds
lScen = GetMemberID(DIMENSIONSCENARIO, "Actual")
lYear = GetMemberID(DIMENSIONYEAR, "2000")
lPer = GetMemberID(DIMENSIONPERIOD, "July")
lView = GetMemberID(DIMENSIONVIEW, "YTD")
lEnt = GetMemberID(DIMENSIONENTITY, "Connecticut")
lPar = GetMemberID(DIMENSIONENTITY, "UnitedStates")
lAcct = GetMemberID(DIMENSIONACCOUNT, "Sales")
lVal = GetMemberID(DIMENSIONVALUE, "<Entity Curr Adjs>")
lICP = GetMemberID(DIMENSIONICP, "[ICP None]")
lCust1 = GetMemberID(DIMENSIONCUSTOM1, "GolfBalls")
lCust2 = GetMemberID(DIMENSIONCUSTOM2, "Customer2")
lCust3 = GetMemberID(DIMENSIONCUSTOM3, "[None]")
lCust4 = GetMemberID(DIMENSIONCUSTOM4, "Increases")
m_cHsvData.GetCellJournalEntries lScen, lYear, lPer, lEnt, _
lPar, lVal, lAcct, lICP, lCust1, lCust2, lCust3, lCust4, _
vadData, vasData, vaIds
' Make sure an array is returned.
If IsArray(vaIds) = True Then
For i = LBound(vaIds) To UBound(vaIds)
Debug.Print CStr(vaIds(i)) & " ID: " & vasData(i)
Next i
End If