Guest User

Untitled

a guest
Mar 22nd, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. sub PartialSums
  2.  
  3. set obj = ActiveDocument.GetSheetObject("CH11")
  4. set prop = obj.GetProperties
  5. set dims =prop.Dimensions
  6.  
  7. for i = 0 to dims.Count-1
  8. if dims(i).ShowPartialSums then
  9. dims(i).ShowPartialSums=false
  10. else
  11. dims(i).ShowPartialSums=true
  12. end if
  13. next
  14.  
  15. obj.SetProperties prop
  16.  
  17.  
  18. set mytext = ActiveDocument.GetSheetObject("TX94")
  19. prop = mytext.GetProperties
  20.  
  21. if prop.Layout.Text.v = "Show Partial Sums" then
  22. prop.Layout.Text.v = "Hide Partial Sums"
  23. else
  24. prop.Layout.Text.v = "Show Partial Sums"
  25. end if
  26.  
  27. mytext.SetProperties prop
  28.  
  29.  
  30. end sub
Add Comment
Please, Sign In to add comment