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: 
sonikajain
Partner - Contributor
Partner - Contributor

set size of sheet using macro

hi all,

Can we define the size (vertical) of a sheet...???? I want to specify the size of the sheet on click of a button.

Please advise. Am trying to do it using macro.

2 Replies
erichshiino
Partner - Master
Partner - Master

Hi, I don't believe it is possible (maybe it is with some advanced macro codes that would control the OS and adjust window size... )

You can use simple macros to adjust the zoom level of your sheet

sub setZoom

set mysheet=ActiveDocument.ActiveSheet

set sp=mysheet.GetProperties

sp.ZoomFactor = 0.9

mysheet.SetProperties sp

End sub

You can adjust the zoom in sp.zoomfactor

Hope this helps,

Erich

sonikajain
Partner - Contributor
Partner - Contributor
Author

hi..the zoom thing resizes the sheet objects too ....I need to keep the sheet size fixed.:(