Data provider types: Essbase, Planning, Financial Management, Hyperion Enterprise
HypSetAsDefault() sets a connection default.
HypSetAsDefault (vtFriendlyName)
ByVal vtFriendlyName As Variant
vtFriendlyName: The name of the private active connection to be set as the default. It must be a private connection name whose value can be found in the Registry: HKCU\Software\Hyperion Solutions\HyperionSmartView\Connections
If successful, return value is 0; otherwise, the appropriate error code is returned.
Public Declare Function HypSetAsDefault Lib "HsAddin" (ByVal vtFriendlyName As Variant) As Long Sub Example_SetAsDefault() sts = HypSetAsDefault("buildtie7_w32Simple_w32Simple") MsgBox (sts) End Sub