Sets individual workspace options.
EssVSetGlobalOption(item, globalOption) ByVal item As Long ByVal globalOption As Variant
Number indicating which option is to be set. item cannot be Null or Empty. Table 15 indicates which options are set for which number and the expected data type:
Table 15. Item Number Options and Expected Data Types
item | Option | Expected Data Type |
---|---|---|
This setting is maintained for backward compatibility with previous Essbase releases. | ||
Enable double-clicking to browse Linked Report Objects setting | ||
A Boolean or Number value denoting the option being set for item. If globalOption is Null or Empty, the active worksheet value for the item is used.
Returns 0 if successful. A negative number indicates a local failure (see VBA Return Values). A return value greater than zero indicates a failure on the server.
This example sets the option to display error messages only.
Declare Function EssVSetGlobalOption Lib "ESSEXCLN.XLL" (ByVal item As Long, ByVal globalOption As Variant) As Long Sub SetGlobal() X=EssVSetGlobalOption(5, 3) If X=0 Then MsgBox("Message level is set to 3 - Errors only") Else MsgBox("Error. Message level not set.") End If End Sub
No additional parameters for EssVSetGlobalOption are added after Essbase Release 5.0.2. To set options, use EssVSetSheetOption.