QVGuard Studio User Guide
2) Add Application
3) Setup QlikView App
4) Add QVGuard Script
5) Add QVGuard Macro
6) Adjust Load Script
7) Test Licensing
8) Create Licence
9) Publish QlikView App
10) Advanced Topics
View All Steps On Single Page
5) Add QVGuard Macro
PLEASE NOTE: You need to carry out this step regardless of whether you are using macros in your QlikView application or not.
You should now locate the node in QVGuard for this QlikView application, and on the 'Macro Code' tab, select either VBScript or JScript (depending on your preference) and click the 'Copy to Clipboard' button:

You should then paste this script into the macro module of your QlikView application:

At this point you should also ensure that you have selected 'System Access' both the 'Requested Module Security' and 'Current Local Security' as illustrated below.

Note that end users of your protected QlikView application(s) will also need to allow Macros system access in order for the licensing functionality to work.
You will find in the auto generated macro code a function named QVG_CheckLicence. If you are not using the QlikView load script to run the QVGuard license check as shown in the this step then you should call this QVG_CheckLicence function in your QlikView application, for example when it first opens (in the OnOpen macro event) or when the user first interacts with the application. Once the function has been run once the QlikView variables should have been populated and available for you to check. Based on these variables you might want to limit the functionality of your QlikView application or prevent usage completely.