can I display an object only if another object is maximized? Problem is that I have an object that should be only shown in combination with another one.
What triggers the macro depends on the app, probably activating the sheet. I tried with a button.
Didn't use IsMaximized because it was not working with the chart in a normal position (such as after a Restore). If you really Maximize it full screen change.
I created a variable vSeeMee1. Added vSeeMee1=1 as a conditional function to Show in the Presentation Tab
[code/]
sub maxim_maxim set maxim1=ActiveDocument.GetSheetObject("CH01") set v = ActiveDocument.Variables("vSeeMee1")
if (maxim1.IsMinimized=false) then v.SetContent "1",true else v.SetContent "0",true end if end sub