<?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: Sort a pivot table with macro button in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sort-a-pivot-table-with-macro-button/m-p/1546623#M746469</link>
    <description>Try this:&lt;BR /&gt;&lt;BR /&gt;Sub SortChart&lt;BR /&gt;&lt;BR /&gt;Set chart1 = ActiveDocument.GetSheetObject("CH577")&lt;BR /&gt;chart1.SortBy 17&lt;BR /&gt;&lt;BR /&gt;End Sub</description>
    <pubDate>Tue, 19 Feb 2019 22:49:06 GMT</pubDate>
    <dc:creator>Claudiu_Anghelescu</dc:creator>
    <dc:date>2019-02-19T22:49:06Z</dc:date>
    <item>
      <title>Sort a pivot table with macro button</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-a-pivot-table-with-macro-button/m-p/1546192#M746467</link>
      <description>&lt;P&gt;I've a single pivot table whose ID is&amp;nbsp;CH577 ("ANALISI MARGINE") and I have some buttons that open it. The tab has many different columns and I want to order it by pressing buttons. So for example if I press button 1 it will sort my tab for column 1, if I press button 2 it will sort my tab for column 2 ecc.&lt;/P&gt;&lt;P&gt;Is there any macro I could use or something like that?&lt;/P&gt;&lt;P&gt;Because I've tried this macro:&lt;/P&gt;&lt;P&gt;Sub SortChart&lt;/P&gt;&lt;P&gt;Set ch = ActiveDocument.GetSheetObject("CH577")&lt;BR /&gt;ch.SortBy 17&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;But when I press the button it opens the tab but it doesn't run the macro, instead it opens Edit Module&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-a-pivot-table-with-macro-button/m-p/1546192#M746467</guid>
      <dc:creator>zenobendi</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sort a pivot table with macro button</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-a-pivot-table-with-macro-button/m-p/1546623#M746469</link>
      <description>Try this:&lt;BR /&gt;&lt;BR /&gt;Sub SortChart&lt;BR /&gt;&lt;BR /&gt;Set chart1 = ActiveDocument.GetSheetObject("CH577")&lt;BR /&gt;chart1.SortBy 17&lt;BR /&gt;&lt;BR /&gt;End Sub</description>
      <pubDate>Tue, 19 Feb 2019 22:49:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-a-pivot-table-with-macro-button/m-p/1546623#M746469</guid>
      <dc:creator>Claudiu_Anghelescu</dc:creator>
      <dc:date>2019-02-19T22:49:06Z</dc:date>
    </item>
  </channel>
</rss>

