VB 53
[WORK] Hyperion Smartview - Toggle Missing/Zeros By Silversunset on 20th January 2020 09:50:18 PM
  1. Sub SmartView_ToggleMissingZeros()
  2. 'Toggle between suppress missing/zero and display missing/zero
  3.     opt1 = HypGetSheetOption(Empty, 6)  'test suppress missing
  4.     opt2 = HypGetSheetOption(Empty, 7)  'test suppress zeros
  5.    
  6.     If opt1 <> opt2 Then
  7.         MsgBox ("No change has been made (missing/zero are not set the same, please check your options)")
  8.     Else
  9.         If opt1 And opt2 Then
  10.             x = HypSetSheetOption(Empty, 6, False) 'suppress missing items
  11.             x = HypSetSheetOption(Empty, 7, False) 'suppress zero items
  12.             MsgBox ("Missing/Zero items are now Visible")
  13.         Else
  14.             x = HypSetSheetOption(Empty, 6, True) 'display missing items
  15.             x = HypSetSheetOption(Empty, 7, True) 'display zero items
  16.             MsgBox ("Missing/Zero items are now Suppressed")
  17.         End If
  18.     End If
  19.    
  20. End Sub
Raw Paste