AttachDocumentToCell

Attaches a previously loaded document to a cell.

Tip:

To detach a document to a cell, use DetachDocumentFromCell.

Syntax

<HsvData>.AttachDocumentToCell lScenario, lYear, lPeriod, lEntity, lParent, lValue, lAccount, lICP, lCustom1, lCustom2, lCustom3, lCustom4, bstrDocPath, bstrDocFile

Argument

Description

lScenario

Long (ByVal). The member ID of the cell's Scenario dimension member.

lYear

Long (ByVal). The member ID of the cell's Year dimension member.

lPeriod

Long (ByVal). The member ID of the cell's Period dimension member.

lEntity

Long (ByVal). The member ID of the cell's Entity dimension member.

lParent

Long (ByVal). The member ID of the parent of the lEntity argument's entity.

lValue

Long (ByVal). The member ID of the cell's Value dimension member.

lAccount

Long (ByVal). The member ID of the cell's Account dimension member.

lICP

Long (ByVal). The member ID of the cell's Intercompany Partner dimension member.

lCustom1

Long (ByVal). The member ID of the cell's Custom 1 dimension member.

lCustom2

Long (ByVal). The member ID of the cell's Custom 2 dimension member.

lCustom3

Long (ByVal). The member ID of the cell's Custom 3 dimension member.

lCustom4

Long (ByVal). The member ID of the cell's Custom 4 dimension member.

bstrDocPath

String (ByVal). The path in which the document has been loaded. Folders in the path are delimited by backslashes ( \ ).

bstrDocFile

String (ByVal). The name of the file to attach.

Caution!

This file must be loaded in the folder specified by the bstrDocPath argument, otherwise an error will be thrown.