Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Use IF stmt in Macro to see if Multibox is active

I need to verify if a specific multibox is active within a macro. I can see how to loop through in the api guide, but cant figure out how to check if a specific multi is active. Tried using



if

ActiveDocument.ActiveSheet.GetSheetObject("MB01").GetProperties.IsActive

then

but that doesnt work. what is the correct syntax to reference a specific multibox?







1 Solution

Accepted Solutions
Not applicable
Author

try this one:

sub Test

set myBox = ActiveDocument.GetSheetObject("MB01")

if myBox.IsActive then

msgbox("Active!")

else

msgbox("Not Active!")

end if

end sub



View solution in original post

3 Replies
Not applicable
Author

try this one:

sub Test

set myBox = ActiveDocument.GetSheetObject("MB01")

if myBox.IsActive then

msgbox("Active!")

else

msgbox("Not Active!")

end if

end sub



Not applicable
Author

call this macro when the sheet activates

Not applicable
Author

Thank you, works great