<?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: Macro for resizing the window in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-for-resizing-the-window/m-p/538712#M550495</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey, &lt;/P&gt;&lt;P&gt;i use this approach to fit the window to the user screen. Is not what you are asking but all the pages will fit when activated. &lt;/P&gt;&lt;P&gt;-&amp;gt; Settings -&amp;gt;Sheet Propreties -&amp;gt;Triggers -&amp;gt; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;OnActivateSheet&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;i run this macro: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub Zoom &lt;/P&gt;&lt;P&gt;ActiveDocument.GetApplication.WaitForIdle &lt;/P&gt;&lt;P&gt;ActiveDocument.ActiveSheet.FitZoomToWindow &lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps you. &lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Juan Pedro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Dec 2013 11:01:14 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-12-06T11:01:14Z</dc:date>
    <item>
      <title>Macro for resizing the window</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-for-resizing-the-window/m-p/538711#M550494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had written a macro for resizing the QlikView app as per the user size window .&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"Sub Zoom &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;set vAutozoomSwitch = ActiveDocument.Variables("vZoom").GetContent&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;If vAutozoomSwitch.String = "0" Then&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ActiveDocument.GetApplication.WaitForIdle&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ActiveDocument.ActiveSheet.FitZoomToWindow&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Else&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ActiveDocument.GetApplication.WaitForIdle&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Set prop = ActiveDocument.ActiveSheet.GetProperties&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;prop.ZoomFactor = 1.0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ActiveDocument.ActiveSheet.SetProperties prop&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;End If&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;End Sub "&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I used text box which helps to&amp;nbsp; resize the window to&amp;nbsp; standard size&amp;nbsp; and its vice versa with actions.&lt;/P&gt;&lt;P&gt;This is working fine&amp;nbsp; on a single sheet .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;What I want is , by clicking the text box&amp;nbsp; on one&amp;nbsp; sheet it should get applied to all the sheets .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried with document triggers but it doesn't helped me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Susvith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Dec 2013 10:28:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-for-resizing-the-window/m-p/538711#M550494</guid>
      <dc:creator />
      <dc:date>2013-12-06T10:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: Macro for resizing the window</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-for-resizing-the-window/m-p/538712#M550495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey, &lt;/P&gt;&lt;P&gt;i use this approach to fit the window to the user screen. Is not what you are asking but all the pages will fit when activated. &lt;/P&gt;&lt;P&gt;-&amp;gt; Settings -&amp;gt;Sheet Propreties -&amp;gt;Triggers -&amp;gt; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;OnActivateSheet&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;i run this macro: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub Zoom &lt;/P&gt;&lt;P&gt;ActiveDocument.GetApplication.WaitForIdle &lt;/P&gt;&lt;P&gt;ActiveDocument.ActiveSheet.FitZoomToWindow &lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps you. &lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Juan Pedro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Dec 2013 11:01:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-for-resizing-the-window/m-p/538712#M550495</guid>
      <dc:creator />
      <dc:date>2013-12-06T11:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: Macro for resizing the window</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-for-resizing-the-window/m-p/538713#M550496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;HI juan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my case I should give an option to end user for resizing window.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you have any solution for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Susvith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Dec 2013 12:48:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-for-resizing-the-window/m-p/538713#M550496</guid>
      <dc:creator />
      <dc:date>2013-12-06T12:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: Macro for resizing the window</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-for-resizing-the-window/m-p/538714#M550497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I use these macros linked to 4 different buttons (action-&amp;gt;run macro)&lt;/P&gt;&lt;P&gt;Works well on client but doesnìt work in web browser (still don't know why, it seems on web macros are not allowed):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sub zoom_piu()&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; set mysheet=ActiveDocument.ActiveSheet&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; set sp=mysheet.GetProperties&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; sp.ZoomFactor = sp.ZoomFactor + 0.02&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; mysheet.SetProperties sp&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; Apply2All()&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; end sub&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sub zoom_meno()&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; set mysheet=ActiveDocument.ActiveSheet&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; set sp=mysheet.GetProperties&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; sp.ZoomFactor = sp.ZoomFactor - 0.02&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; mysheet.SetProperties sp&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Apply2All()&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;end sub&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sub zoom_normal()&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; set mysheet=ActiveDocument.ActiveSheet&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; set sp=mysheet.GetProperties&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; sp.ZoomFactor = 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; mysheet.SetProperties sp&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Apply2All()&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;end sub&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sub zoom_fit()&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="line-height: 1.5em; font-size: 10pt;"&gt;&amp;nbsp; ActiveDocument.ActiveSheet.FitZoomToWindow&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="line-height: 1.5em; font-size: 10pt;"&gt;&amp;nbsp; Apply2All()&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;end sub&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sub Apply2All()&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="line-height: 1.5em; font-size: 10pt;"&gt;&amp;nbsp; ActiveDocument.GetApplication.WaitForIdle&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; ActiveDocument.ActiveSheet.ApplyZoomToAllSheets&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;end sub&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2013 17:10:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-for-resizing-the-window/m-p/538714#M550497</guid>
      <dc:creator>Marcoimp</dc:creator>
      <dc:date>2013-12-12T17:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: Macro for resizing the window</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-for-resizing-the-window/m-p/538715#M550498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to create an Apply2All() for sheet user permissions. Do you know if that is possible? There is an "Apply to all sheets" check box in Sheet Properties&amp;gt;Security, but I don't know what the variable is called or how to call it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2014 16:09:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-for-resizing-the-window/m-p/538715#M550498</guid>
      <dc:creator />
      <dc:date>2014-03-12T16:09:29Z</dc:date>
    </item>
  </channel>
</rss>

