Data source types: Essbase, Planning (ad hoc only), Financial Management (ad hoc only), Hyperion Enterprise (ad hoc only)
HypRetrieve() retrieves data from the database.
HypRetrieve(vtSheetName)
ByVal vtSheetName As Variant
vtSheetName: For future use. Currently the active sheet is used.
Returns 0 if successful; otherwise, returns the appropriate error code.
Declare Function HypRetrieve Lib "HsAddin" (ByVal vtSheetName As Variant, ByVal vtRange As Variant, ByVal vtLock As Variant) As Long
Sub RetData()
X=HypRetrieve(Empty)
If X = 0 Then
MsgBox("Retrieve successful.")
Else
MsgBox("Retrieve failed.")
End If
End Sub