Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Macros won't run???

I have an application where I have set up a macro as an action to a button. I want to do a Partial Reload. But I cannot seem to get the macro to run. I am confident the syntax is good. Clicking the button does nothing. Not even an error message. Am I missing something? Maybe a setting in Qlikview or license issue or something???

I tried another macro to display a message box as a test, and that doesn't seem to respond either. Here is example of my code:

Sub PartialReload
Set varCurrentQvw = ActiveDocument
'varCurrentQvw.PartialReload
varCurrentQvw.DoReload 2,true,false
End Sub

Sub DisplayMsgBox

msgbox("This is a test." )
End Sub

error loading image

Any ideas would be appreciated.

4 Replies
llauses243
Creator III
Creator III

Hi,

When do you use macros must review SECURITY see attach

good luck, Luis

Anonymous
Not applicable
Author

Got it. That was absolutely the issue. Thanks for the assist.

Not applicable
Author

In my case MsgBox works, but

Set varCurrentQvw = ActiveDocument does not work

It says ActiveDocument is not identified

Not applicable
Author

It fianlly worked after using samples