Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
adiarnon
Creator III
Creator III

Zoom Problem

hi,

i want to create a button for zoom

that will

fit zoom to the window and apply the zoom to all sheets.

im using the IE Plugin

i havr the macros-

sub FitToWindow
ActiveDocument.ActiveSheet.FitZoomToWindow
end sub

sub ApplyZoom
ActiveDocument.ActiveSheet.ApplyZoomToAllSheets
end sub

if im using two buttons - one for each macro - its working...

but, i want one button!

i tried to use Call ApplyZoom in the FitToWindow

i tried  one macro with the two actions

i tried to put in the same button two action

nothing ias working...

please help

tnx,

adi

2 Replies
PrashantSangle

Hi,

Write both command in one Sub

Try like

Sub ApplyZoom

ActiveDocument.ActiveSheet.FitZoomToWindow

ActiveDocument.ActiveSheet.ApplyZoomToAllSheets

End Sub

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
adiarnon
Creator III
Creator III
Author

hi and tnx

i tried it.

its doing nothing...

adi