HypUpdateLRO

Description

HypUpdateLRO() updates linked reporting objects associated with the cells specified by the vtSelectionRange parameter.

Syntax

HypUpdateLRO(vtSheetName, vtSelectionRange, vtID,vtlType, vtName, vtDescription)

ByVal vtSheetName As Variant

ByVal vtSelectionRange As Variant

ByVal vtID As Variant

ByVal vtlType As Variant

ByVal vtName As Variant

ByVal vtDescription As Variant

Parameters

vtSheetName: For future use; currently the active sheet is used.

vtSelectionRange: Input parameter; the range of cells to associate with the linked reporting object.

vtID: Input parameter; the ID of the linked reporting object to be updated

vtlType:Input parameter; the linked reporting object type expressed as a constant

  • 1 - Cell note

  • 2 - File

  • 3 - URL

vtName: Input parameter; the location of the file with filename and URL information. Not used for cell note.

vtDescription: Input parameter; the description of the cell note, file, or URL.

Return Value

Returns 0 if successful; otherwise, returns the corresponding error code.

Example

Public Declare Function HypUpdateLRO Lib "HsAddin" (ByVal vtSheetName As Variant ByVal vtSelectionRange As Variant,ByVal vtID As Variant,ByVal vtlType As Variant,ByVal vtName As Variant,ByVal vtDescription As Variant) As Long

Sub HypUpdateLRO
sts = HypUpdateLRO("Sheet1", Range("B3"), "2", 2, "d:\test2.txt", "linked object")
End Sub