<?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 How to export a table using macro embeded in the script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-export-a-table-using-macro-embeded-in-the-script/m-p/989581#M645204</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallo Community!&lt;/P&gt;&lt;P&gt;What is wrong with the process?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-size: 10pt; font-family: 'Verdana','sans-serif';"&gt;&lt;STRONG&gt;Macro:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;Function ExTB()&lt;BR /&gt;dim ex&lt;BR /&gt;set ex = ActiveDocument.GetSheetObject("TB01")&lt;BR /&gt;ex.ExportHTML "C:\EntwicklungTests\TB01.html"&lt;BR /&gt;end Function &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 10pt; font-family: 'Verdana','sans-serif';"&gt;&lt;STRONG&gt;&lt;BR /&gt;Script:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-size: 10pt; font-family: 'Verdana','sans-serif';"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;DRG_Code&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;DRG_Typ&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;DRG_Bezeichnung&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;DRG_Partition&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;SPAN style="color: blue; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt; &lt;C&gt; (&lt;/C&gt;&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;qvd&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;);&lt;BR /&gt;&lt;SPAN style="color: blue; font-size: 10pt; font-family: 'Verdana','sans-serif';"&gt;&lt;STRONG&gt;let&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: gray; font-size: 10pt; font-family: 'Verdana','sans-serif';"&gt;&lt;STRONG&gt;&lt;EM&gt;ExTB&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;ExTB&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;(); &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am not getting an error message, but it does not work.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have tried somthing like follows too:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;&lt;SPAN style="color: blue; font-size: 10pt; font-family: 'Verdana','sans-serif';"&gt;&lt;STRONG&gt;Macro:&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;Sub TBex&lt;BR /&gt;set ex = ActiveDocument.GetSheetObject("TB01")&lt;BR /&gt;ex.ExportBiff "C:\EntwicklungTests\TB01.xls"&lt;BR /&gt;end Sub &lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="color: blue; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;Script: &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: blue; line-height: 115%; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;&lt;SPAN style="color: blue; font-size: 10pt; font-family: 'Verdana','sans-serif';"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="line-height: 115%; color: maroon; font-size: 10pt; font-family: 'Verdana','sans-serif';"&gt;DRG_Code&lt;/SPAN&gt;&lt;SPAN style="color: blue; line-height: 115%; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;&lt;SPAN style="color: black; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;DRG_Typ&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;DRG_Bezeichnung&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;DRG_Partition&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;SPAN style="color: blue; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt; &lt;C&gt; (&lt;/C&gt;&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;qvd&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;);&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 115%; color: blue; font-size: 10pt; font-family: 'Verdana','sans-serif';"&gt;&lt;STRONG&gt;call&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="line-height: 115%; color: blue; font-size: 10pt; font-family: 'Verdana','sans-serif';"&gt;&lt;STRONG&gt;TBex&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;(); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Than I am getting the message:&lt;BR /&gt;Fehler in Skriptzeile: (error in the script line)&lt;/P&gt;&lt;P&gt;call TBex()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am perplexed because the both macros are working perfectly, when testing in the macro editor and I suppose the question is solved many times but I did not find the right thread.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Oct 2015 11:20:59 GMT</pubDate>
    <dc:creator>robert_dolezych</dc:creator>
    <dc:date>2015-10-29T11:20:59Z</dc:date>
    <item>
      <title>How to export a table using macro embeded in the script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-export-a-table-using-macro-embeded-in-the-script/m-p/989581#M645204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallo Community!&lt;/P&gt;&lt;P&gt;What is wrong with the process?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-size: 10pt; font-family: 'Verdana','sans-serif';"&gt;&lt;STRONG&gt;Macro:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;Function ExTB()&lt;BR /&gt;dim ex&lt;BR /&gt;set ex = ActiveDocument.GetSheetObject("TB01")&lt;BR /&gt;ex.ExportHTML "C:\EntwicklungTests\TB01.html"&lt;BR /&gt;end Function &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 10pt; font-family: 'Verdana','sans-serif';"&gt;&lt;STRONG&gt;&lt;BR /&gt;Script:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-size: 10pt; font-family: 'Verdana','sans-serif';"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;DRG_Code&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;DRG_Typ&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;DRG_Bezeichnung&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;DRG_Partition&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;SPAN style="color: blue; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt; &lt;C&gt; (&lt;/C&gt;&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;qvd&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;);&lt;BR /&gt;&lt;SPAN style="color: blue; font-size: 10pt; font-family: 'Verdana','sans-serif';"&gt;&lt;STRONG&gt;let&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: gray; font-size: 10pt; font-family: 'Verdana','sans-serif';"&gt;&lt;STRONG&gt;&lt;EM&gt;ExTB&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;ExTB&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;(); &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am not getting an error message, but it does not work.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have tried somthing like follows too:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;&lt;SPAN style="color: blue; font-size: 10pt; font-family: 'Verdana','sans-serif';"&gt;&lt;STRONG&gt;Macro:&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;Sub TBex&lt;BR /&gt;set ex = ActiveDocument.GetSheetObject("TB01")&lt;BR /&gt;ex.ExportBiff "C:\EntwicklungTests\TB01.xls"&lt;BR /&gt;end Sub &lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="color: blue; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;Script: &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: blue; line-height: 115%; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;&lt;SPAN style="color: blue; font-size: 10pt; font-family: 'Verdana','sans-serif';"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="line-height: 115%; color: maroon; font-size: 10pt; font-family: 'Verdana','sans-serif';"&gt;DRG_Code&lt;/SPAN&gt;&lt;SPAN style="color: blue; line-height: 115%; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;&lt;SPAN style="color: black; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;DRG_Typ&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;DRG_Bezeichnung&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;DRG_Partition&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;SPAN style="color: blue; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt; &lt;C&gt; (&lt;/C&gt;&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;qvd&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;);&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 115%; color: blue; font-size: 10pt; font-family: 'Verdana','sans-serif';"&gt;&lt;STRONG&gt;call&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="line-height: 115%; color: blue; font-size: 10pt; font-family: 'Verdana','sans-serif';"&gt;&lt;STRONG&gt;TBex&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;(); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Than I am getting the message:&lt;BR /&gt;Fehler in Skriptzeile: (error in the script line)&lt;/P&gt;&lt;P&gt;call TBex()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am perplexed because the both macros are working perfectly, when testing in the macro editor and I suppose the question is solved many times but I did not find the right thread.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2015 11:20:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-export-a-table-using-macro-embeded-in-the-script/m-p/989581#M645204</guid>
      <dc:creator>robert_dolezych</dc:creator>
      <dc:date>2015-10-29T11:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to export a table using macro embeded in the script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-export-a-table-using-macro-embeded-in-the-script/m-p/989582#M645205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; What helps mostly is reading. I have found everything in the QV help file. &lt;/P&gt;&lt;P&gt;The solution is not in the script!&lt;/P&gt;&lt;P&gt;Settings → Document Properties → Triggers …&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2015 14:59:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-export-a-table-using-macro-embeded-in-the-script/m-p/989582#M645205</guid>
      <dc:creator>robert_dolezych</dc:creator>
      <dc:date>2015-10-30T14:59:43Z</dc:date>
    </item>
  </channel>
</rss>

