<?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: VBScript to create pivot table in new excel document in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/VBScript-to-create-pivot-table-in-new-excel-document/m-p/1783981#M1209819</link>
    <description>&lt;P&gt;I think I have answered my own question:&lt;/P&gt;&lt;P&gt;The issue was "xlDatabase". use the reference numbers instead.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;objWorkbook.PivotCaches.Create(1, "YTD Net Cases By Manager!R1C1:R1048576C5", 6).CreatePivotTable objWorkbook.Sheets(1).Range("A3"), "SummaryPivot"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Feb 2021 20:02:30 GMT</pubDate>
    <dc:creator>olivetwist</dc:creator>
    <dc:date>2021-02-18T20:02:30Z</dc:date>
    <item>
      <title>VBScript to create pivot table in new excel document</title>
      <link>https://community.qlik.com/t5/QlikView/VBScript-to-create-pivot-table-in-new-excel-document/m-p/1783971#M1209818</link>
      <description>&lt;P&gt;Has anyone figured out a way to export data to an excel doc and then create a pivot table within that doc using Qlikview VBScript? I am trying to avoid creating a separate workbook to house the pivot table macro.&lt;BR /&gt;&lt;BR /&gt;I have tried recording the macro in Excel and using that code which has syntax errors (Expected ')'):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;  ActiveWorkbook.PivotCaches.Create(SourceType:=xlDatabase, SourceData:= _
    "Name!R1C1:R1048576C5", Version:=6).CreatePivotTable _
    TableDestination:="Summary!R3C1", TableName:="SummaryPivot", DefaultVersion:=6&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As well as trying to convert that recorded VBA to VBScript, like the line below, which returns as an invalid procedure call or argument error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;objWorkbook.PivotCaches.Create(xlDatabase, "Name!R1C1:R1048576C5", 6).CreatePivotTable "Summary!R3C1", "SummaryPivot", 6&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any advice is appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 19:47:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VBScript-to-create-pivot-table-in-new-excel-document/m-p/1783971#M1209818</guid>
      <dc:creator>olivetwist</dc:creator>
      <dc:date>2021-02-18T19:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: VBScript to create pivot table in new excel document</title>
      <link>https://community.qlik.com/t5/QlikView/VBScript-to-create-pivot-table-in-new-excel-document/m-p/1783981#M1209819</link>
      <description>&lt;P&gt;I think I have answered my own question:&lt;/P&gt;&lt;P&gt;The issue was "xlDatabase". use the reference numbers instead.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;objWorkbook.PivotCaches.Create(1, "YTD Net Cases By Manager!R1C1:R1048576C5", 6).CreatePivotTable objWorkbook.Sheets(1).Range("A3"), "SummaryPivot"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 20:02:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VBScript-to-create-pivot-table-in-new-excel-document/m-p/1783981#M1209819</guid>
      <dc:creator>olivetwist</dc:creator>
      <dc:date>2021-02-18T20:02:30Z</dc:date>
    </item>
  </channel>
</rss>

