Inserts data for a cell at the bottom of an HsvMDDataBufferLite object.
<HsvMDDataBufferLite>.InsertDataAtEnd lScenario, lYear, lPeriod, lView, lEntity, lParent, lValue, lAccount, lICP, lCustom1, lCustom2, lCustom3, lCustom4, dData, vbIsNoData
The following example loops through an array of Account dimension member IDs and inserts data and descriptions for each account into a cell. The data and descriptions are taken from arrays of the same size. Note that the non-Account member IDs passed to InsertDataAtEnd and InsertDescriptionAtEnd are the same for each cell.
For i = LBound(vlIDs) To UBound(vlIDs) ' vlIDs() is a Long array of Account IDs, vdData() is a ' Double array of data. m_cMDBufferLite.InsertDataAtEnd m_lScen, m_lYear, m_lPer, _ m_lView, m_lEnt, m_lPar, m_lVal, vlIDs(i), m_lICP, m_lCust1, _ m_lCust2, m_lCust3, m_lCust4, vdData(i), False 'vsDescs() is a String array of descriptions. m_cMDBufferLite.InsertDescriptionAtEnd m_lScen, m_lYear, _ m_lPer, m_lEnt, m_lPar, m_lVal, vlIDs(i), m_lICP, _ m_lCust1, m_lCust2, m_lCust3, m_lCust4, vsDescs(i) Next i