Removes or restores the Essbase menu from Excel.
EssVSetMenu(setMenu)
ByVal setMenu As Boolean
Boolean value indicating whether to remove or restore the Essbase menu for Excel.
A True value indicates that the menu should be restored. A False value indicates that the menu should be removed.
Returns 0 if successful. Otherwise, it returns -31 if setMenu is True and the Essbase menu exists. It returns -30 if setMenu is False and the Essbase menu was removed.
Declare Function EssVSetMenu Lib "ESSEXCLN.XLL" (ByVal setMenu As Boolean) As Long Sub SetMyMenu() X=EssVSetMenu(TRUE) End Sub