<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Change window zoom % based on slider object variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Change-window-zoom-based-on-slider-object-variable/m-p/690044#M249870</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/24234"&gt;zoom&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Here is a solution, made by Tanel Rüütli. I used a button to call for macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub zoom&lt;/P&gt;&lt;P&gt;zoomvalue = ActiveDocument.Evaluate("num(Zoom)")&lt;/P&gt;&lt;P&gt;set mysheet=ActiveDocument.ActiveSheet&lt;/P&gt;&lt;P&gt;set sp=mysheet.GetProperties&lt;/P&gt;&lt;P&gt;sp.ZoomFactor = zoomvalue&lt;/P&gt;&lt;P&gt;mysheet.SetProperties sp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ActiveDocument.GetApplication.WaitForIdle&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ActiveDocument.ActiveSheet.ApplyZoomToAllSheets&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;edit: I set the value of the variable (Zoom) with slider and after that I call the macro with a button. Works fine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 31 Aug 2014 05:39:31 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-08-31T05:39:31Z</dc:date>
    <item>
      <title>Change window zoom % based on slider object variable</title>
      <link>https://community.qlik.com/t5/QlikView/Change-window-zoom-based-on-slider-object-variable/m-p/690043#M249869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a standard slider object that assigns a value 1 - 200 to a variable named "Zoom".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to assign a macro to a button that will adjust the zoom % of the screen based on the value of "Zoom". Here is the macro so far:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub SlideZoom&lt;/P&gt;&lt;P&gt;set vZoom = ActiveDocument.Variables("Zoom")&lt;/P&gt;&lt;P&gt;set mySheet = ActiveDocument.ActiveSheet&lt;/P&gt;&lt;P&gt;set sp = mySheet.GetProperties&lt;/P&gt;&lt;P&gt;&amp;nbsp; sp.ZoomFactor = vZoom&lt;/P&gt;&lt;P&gt;&amp;nbsp; mySheet.setProperties sp&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically I would like to eliminate going through View-&amp;gt;Zoom-&amp;gt;Select % to change the zoom % of the window. Whenever I click the button the module window opens, indicating that I have an error. Any suggestions for how I can get this to run?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2014 18:26:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-window-zoom-based-on-slider-object-variable/m-p/690043#M249869</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-16T18:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: Change window zoom % based on slider object variable</title>
      <link>https://community.qlik.com/t5/QlikView/Change-window-zoom-based-on-slider-object-variable/m-p/690044#M249870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/24234"&gt;zoom&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Here is a solution, made by Tanel Rüütli. I used a button to call for macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub zoom&lt;/P&gt;&lt;P&gt;zoomvalue = ActiveDocument.Evaluate("num(Zoom)")&lt;/P&gt;&lt;P&gt;set mysheet=ActiveDocument.ActiveSheet&lt;/P&gt;&lt;P&gt;set sp=mysheet.GetProperties&lt;/P&gt;&lt;P&gt;sp.ZoomFactor = zoomvalue&lt;/P&gt;&lt;P&gt;mysheet.SetProperties sp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ActiveDocument.GetApplication.WaitForIdle&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ActiveDocument.ActiveSheet.ApplyZoomToAllSheets&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;edit: I set the value of the variable (Zoom) with slider and after that I call the macro with a button. Works fine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 Aug 2014 05:39:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-window-zoom-based-on-slider-object-variable/m-p/690044#M249870</guid>
      <dc:creator />
      <dc:date>2014-08-31T05:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: Change window zoom % based on slider object variable</title>
      <link>https://community.qlik.com/t5/QlikView/Change-window-zoom-based-on-slider-object-variable/m-p/690045#M249871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think you can apply custom zoom.&lt;/P&gt;&lt;P&gt;have a look at this attached extension.&lt;/P&gt;&lt;P&gt;Which will fix zoom as per the size of window.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ASHFAQ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 Aug 2014 05:53:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-window-zoom-based-on-slider-object-variable/m-p/690045#M249871</guid>
      <dc:creator>ashfaq_haseeb</dc:creator>
      <dc:date>2014-08-31T05:53:12Z</dc:date>
    </item>
  </channel>
</rss>

