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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Edit Module opens

Hello,

when I run a macro through an button the 'Edit Module' opens and as far as I understand the macro is not executed.

The macro itselves looks like this:

sub Click_Button

If vShowChart=1 then

     set obj=ActiveDocument.GetSheetObject("BU47")

     obj.Press

Else

     set obj=ActiveDocument.GetSheetObject("BU48")

     obj.Press

End If

end sub

kindly

Håkan

2 Replies
jerrysvensson
Partner - Specialist II
Partner - Specialist II

When that happens it is sign that there is something wrong with your code.

ThornOfCrowns
Specialist II
Specialist II

Does this work?

ActiveDocument.GetSheetObject("BU47").Press

ActiveDocument.GetSheetObject("BU48").Press

If not, put a message box into your If ... then ... else to see if it's triggering at all.