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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Macro to activate a Button on a different page

Hi,

How can I activate a button from another page? The reason why I'm doing is because I have to create a simple GUI and have already defined a lot of buttons with different functionalities on different pages. I created a macro on a button -> run macro with:

Sub ActiveDocument.GetSheetObject("BU532").Press

end sub

The problem I got was "(" expected. Is this because I haven't defined the connection properly or should I use another command?

Thanks!

Luca

2 Replies
Anonymous
Not applicable
Author

Ok, I found the solution. I didn't gave a title to the macro.

Sub TEST()

ActiveDocument.GetSheetObject("BU532").Press

end sub

Anil_Babu_Samineni

() is the javascript one, If you really need in VB script try like below

Sub TEST

ActiveDocument.GetSheetObject("BU532").Press

end sub

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful