Skip to main content
The way to achieve your own success is the willingness to help somebody else. Go for it!
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Fit Zoom to WIndow Button


I would like to create a Fit Zoom to Window button to help our users adjust their apps to the many different monitor sizes that are used in the company. Any help on this will be greatly appreciated.

3 Replies
Partner - Specialist
Partner - Specialist

You can add this code as a macro and it will zoom to window:

Sub Zoom

    Set s = ActiveDocument.ActiveSheet


    ActiveDocument.GetApplication.WaitForIdle 300


    'Apply zoom to fit window for current sheet

    ActiveDocument.GetApplication.WaitForIdle 300



    'apply zoom to all other sheets

    ActiveDocument.GetApplication.WaitForIdle 300


End Sub

Partner - Champion III
Partner - Champion III

There is no possibility to zoom in the AccessPoint, so I think you're talking about Desktop or Plugin users.

Write a macro like presented in the first post of this discussion: Fit zoom to window Macro in Access Point

Attach the macro to a button using an action type External->Run Macro

Note that you cannot let a desktop window resize trigger this macro automatically, because QlikView has no events for this.



Not applicable

Thanks, new to developing and didn't think about end user's screen not having function. Would probably be confusing for them to have a Zoom button that did not zoom for Access Point users.