<?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: Set PreserveScrollPosition with Macro for Straight Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-PreserveScrollPosition-with-Macro-for-Straight-Table/m-p/1292728#M846172</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, m w, your code works too.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Mar 2017 14:06:12 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-03-29T14:06:12Z</dc:date>
    <item>
      <title>Set PreserveScrollPosition with Macro for Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Set-PreserveScrollPosition-with-Macro-for-Straight-Table/m-p/1292725#M846169</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;Please can someone help me with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can the Preserve Scroll Position property on a straight table be changed using VBA?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have found this following code using the API Guide, however it only seems to work with the Table Box object and not with the Straight Table object. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; set mybox = ActiveDocument.GetSheetObject("LB01")&lt;/P&gt;&lt;P&gt; set mbp = mybox.GetProperties&lt;/P&gt;&lt;P&gt; mbp.Layout.Frame.PreserveScrollPosition = true&lt;/P&gt;&lt;P&gt; mybox.SetProperties mbp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-PreserveScrollPosition-with-Macro-for-Straight-Table/m-p/1292725#M846169</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set PreserveScrollPosition with Macro for Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Set-PreserveScrollPosition-with-Macro-for-Straight-Table/m-p/1292726#M846170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have worked out how to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just need to change Layout to GraphLayout!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set mybox = ActiveDocument.GetSheetObject("CH102")&lt;/P&gt;&lt;P&gt;&amp;nbsp; set mbp = mybox.GetProperties&lt;/P&gt;&lt;P&gt;&amp;nbsp; mbp.GraphLayout.Frame.PreserveScrollPosition = true&lt;/P&gt;&lt;P&gt;&amp;nbsp; mybox.SetProperties mbp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2017 14:30:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-PreserveScrollPosition-with-Macro-for-Straight-Table/m-p/1292726#M846170</guid>
      <dc:creator />
      <dc:date>2017-03-28T14:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: Set PreserveScrollPosition with Macro for Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Set-PreserveScrollPosition-with-Macro-for-Straight-Table/m-p/1292727#M846171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;set mybox = ActiveDocument.GetSheetObject("CH01")&lt;/P&gt;&lt;P&gt;set fr = mybox.GetFrameDef&lt;/P&gt;&lt;P&gt;fr.PreserveScrollPosition =true&lt;/P&gt;&lt;P&gt;mybox.SetFrameDef fr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2017 15:19:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-PreserveScrollPosition-with-Macro-for-Straight-Table/m-p/1292727#M846171</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2017-03-28T15:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: Set PreserveScrollPosition with Macro for Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Set-PreserveScrollPosition-with-Macro-for-Straight-Table/m-p/1292728#M846172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, m w, your code works too.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Mar 2017 14:06:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-PreserveScrollPosition-with-Macro-for-Straight-Table/m-p/1292728#M846172</guid>
      <dc:creator />
      <dc:date>2017-03-29T14:06:12Z</dc:date>
    </item>
  </channel>
</rss>

