<?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: VB Macro to Export Table to CSV with No headers ! in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/VB-Macro-to-Export-Table-to-CSV-with-No-headers/m-p/289735#M711609</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;Is there any way to add 2 rows in the top of the header for this same example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thnx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Aug 2013 04:34:32 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-08-22T04:34:32Z</dc:date>
    <item>
      <title>VB Macro to Export Table to CSV with No headers !</title>
      <link>https://community.qlik.com/t5/QlikView/VB-Macro-to-Export-Table-to-CSV-with-No-headers/m-p/289731#M711605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi - Can anyone help ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following vb macro that exports data to a csv file :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub ExportToFile&lt;/P&gt;&lt;P&gt;'Download Sheet ojbect data to CSV&lt;/P&gt;&lt;P&gt; set sObject = ActiveDocument.GetSheetObject("TB01")&lt;/P&gt;&lt;P&gt; sObject.Export "C:\download\BIB\TestFile.csv", ", "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Works perfectly except I don't want the field headers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After reading a few articles one work around is to kick of a bat file that contains:&lt;/P&gt;&lt;P&gt;TestFile.csv | find /V "Sort Code,Account Name,Account Number,Amount,Reference,BACS CODE" &amp;gt; noheader.csv&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However this just leaves a blank file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have a solution ?????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2011 10:53:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VB-Macro-to-Export-Table-to-CSV-with-No-headers/m-p/289731#M711605</guid>
      <dc:creator />
      <dc:date>2011-05-11T10:53:40Z</dc:date>
    </item>
    <item>
      <title>VB Macro to Export Table to CSV with No headers !</title>
      <link>https://community.qlik.com/t5/QlikView/VB-Macro-to-Export-Table-to-CSV-with-No-headers/m-p/289732#M711606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I don't believe there is an option with the API to exclude header rows on export.&amp;nbsp; I notice that, even if you check the "Supress Header Row" on chart properties, the header row still exists on export.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your batch command should work; it looks like maybe you're missing "type" command in front of the command in your post.&amp;nbsp; Also, the string following the /v must be perfect with case, spacing etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;type &lt;/STRONG&gt;TestFile.csv | find /V "Sort Code,Account Name,Account Number,Amount,Reference,BACS CODE" &amp;gt; noheader.csv&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Isaiah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2011 12:46:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VB-Macro-to-Export-Table-to-CSV-with-No-headers/m-p/289732#M711606</guid>
      <dc:creator>isaiah82</dc:creator>
      <dc:date>2011-05-11T12:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: VB Macro to Export Table to CSV with No headers !</title>
      <link>https://community.qlik.com/t5/QlikView/VB-Macro-to-Export-Table-to-CSV-with-No-headers/m-p/289733#M711607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For reference - the only way I could make it work was to export the csv file then kick off a bat file to remove the header. If interested my macro was as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub ExportToFile&lt;/P&gt;&lt;P&gt;'Download Sheet ojbect data to CSV&lt;/P&gt;&lt;P&gt; set sObject = ActiveDocument.GetSheetObject("TB01")&lt;/P&gt;&lt;P&gt; sObject.Export "C:\download\BIB\TestFile.csv", ", "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Run Bat File to remove headers&lt;/P&gt;&lt;P&gt;Dim obj&lt;/P&gt;&lt;P&gt;Set obj = CreateObject("WScript.Shell")&lt;/P&gt;&lt;P&gt;obj.Run "C:\download\BIB\test.bat ", , TRUE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then the script in the BAT file kicks off another bit of script. BAT file content is as follows :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c:\download\BIB\DeleteFirstLine.vbs "c:\download\BIB\TestFile.csv"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the vbs file is attached:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(A bit long winded but it worked)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2011 16:15:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VB-Macro-to-Export-Table-to-CSV-with-No-headers/m-p/289733#M711607</guid>
      <dc:creator />
      <dc:date>2011-08-01T16:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: VB Macro to Export Table to CSV with No headers !</title>
      <link>https://community.qlik.com/t5/QlikView/VB-Macro-to-Export-Table-to-CSV-with-No-headers/m-p/289734#M711608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, the above vbs is not working for me. When I run the Macro my Wscript shell is not working&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2012 17:49:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VB-Macro-to-Export-Table-to-CSV-with-No-headers/m-p/289734#M711608</guid>
      <dc:creator />
      <dc:date>2012-08-13T17:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: VB Macro to Export Table to CSV with No headers !</title>
      <link>https://community.qlik.com/t5/QlikView/VB-Macro-to-Export-Table-to-CSV-with-No-headers/m-p/289735#M711609</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;Is there any way to add 2 rows in the top of the header for this same example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thnx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2013 04:34:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VB-Macro-to-Export-Table-to-CSV-with-No-headers/m-p/289735#M711609</guid>
      <dc:creator />
      <dc:date>2013-08-22T04:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: VB Macro to Export Table to CSV with No headers !</title>
      <link>https://community.qlik.com/t5/QlikView/VB-Macro-to-Export-Table-to-CSV-with-No-headers/m-p/289736#M711610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This Solution works Great!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Oct 2013 21:44:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VB-Macro-to-Export-Table-to-CSV-with-No-headers/m-p/289736#M711610</guid>
      <dc:creator />
      <dc:date>2013-10-18T21:44:05Z</dc:date>
    </item>
  </channel>
</rss>

