<?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: Export to CSV with quotation marks in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Export-to-CSV-with-quotation-marks/m-p/1138391#M373427</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;I tried to use your Method with &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;'"' &amp;amp; sum(value) &amp;amp; '"'&lt;/STRONG&gt; and in qlikview it looks good.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="qwv.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/134328_qwv.png" style="height: 47px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;But if i export it via a Makro, i get everytime 3 Quotes .&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;"""roboter""",timeIntervalListAnfang,typebits,aktuellerTag,targetFolder,pathRawData,pathRDSData,intervallTyp&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;"""KA2M41_03R03""","""03.02.2014""","""PLC_do_Typbit_03""","""10.08.2016""","""\\...ta\TargetFolder""","""\\.....ta\RawData""","""\\...SData""","""beliebig"""&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I also tried it with a chr(34) but it didnt worked either.&lt;/P&gt;&lt;P&gt;I use following vba Script to create the csv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sObject.Export "C:\users...p\TestFile.csv","," &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other ides how to get only 1 Quote?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Aug 2016 12:52:41 GMT</pubDate>
    <dc:creator>johann_bauer</dc:creator>
    <dc:date>2016-08-11T12:52:41Z</dc:date>
    <item>
      <title>Export to CSV with quotation marks</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-CSV-with-quotation-marks/m-p/1138389#M373425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;i need to Export a Tabel to a CSV File. I made a VB Script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;set sObject = ActiveDocument.GetSheetObject("TB02")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;sObject.Export "C:\users\\TestFile.csv", ","&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well this works fine but i need quotation marks around the values.&lt;/P&gt;&lt;P&gt;I found a lot of threads about the delimiter, but are there any parameter to add quotes to the value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Johann&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2016 07:34:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-CSV-with-quotation-marks/m-p/1138389#M373425</guid>
      <dc:creator>johann_bauer</dc:creator>
      <dc:date>2016-08-05T07:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Export to CSV with quotation marks</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-CSV-with-quotation-marks/m-p/1138390#M373426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are several possibilities which you could try - storing these data per store-statement within the script, switching to a different export-call like ExportEX or maybe if it's a rather simple table you could add the quotes to each value like: '"' &amp;amp; sum(value) &amp;amp; '"' - whereby I believe you will rather need another workaround and write your data into a file. Here are an example how to loop through a table and how to write values into a text-file and here you could manipulate the output like you need:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/369919"&gt;Re: Export to Excel macro (no field grouping)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/467104"&gt;Re: Scan of scripts in .qvw files&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2016 09:39:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-CSV-with-quotation-marks/m-p/1138390#M373426</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-08-05T09:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: Export to CSV with quotation marks</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-CSV-with-quotation-marks/m-p/1138391#M373427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;I tried to use your Method with &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;'"' &amp;amp; sum(value) &amp;amp; '"'&lt;/STRONG&gt; and in qlikview it looks good.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="qwv.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/134328_qwv.png" style="height: 47px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;But if i export it via a Makro, i get everytime 3 Quotes .&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;"""roboter""",timeIntervalListAnfang,typebits,aktuellerTag,targetFolder,pathRawData,pathRDSData,intervallTyp&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;"""KA2M41_03R03""","""03.02.2014""","""PLC_do_Typbit_03""","""10.08.2016""","""\\...ta\TargetFolder""","""\\.....ta\RawData""","""\\...SData""","""beliebig"""&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I also tried it with a chr(34) but it didnt worked either.&lt;/P&gt;&lt;P&gt;I use following vba Script to create the csv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sObject.Export "C:\users...p\TestFile.csv","," &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other ides how to get only 1 Quote?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2016 12:52:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-CSV-with-quotation-marks/m-p/1138391#M373427</guid>
      <dc:creator>johann_bauer</dc:creator>
      <dc:date>2016-08-11T12:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: Export to CSV with quotation marks</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-CSV-with-quotation-marks/m-p/1138392#M373428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have feared that this happened than it's the same behaviour like by storing values with enclosing quotes within txt-files. I remember on a solution which used double/triple/quadruple quotes to get rid of the automatically logic of adding quotes to quotes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another way is like above mentioned to write these data directly like in this example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub CSVEportWithQuotes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set table = ActiveDocument.GetSheetObject( "TB14" )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for RowIter = 0 to table.GetRowCount-1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for ColIter =0 to table.GetColumnCount-1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set cell = table.GetCell(RowIter,ColIter)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ColIter &amp;lt; table.GetColumnCount-1 then vDelimiter = "," else: vDelimiter = ""&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vContent = vContent &amp;amp; """" &amp;amp; cell.Text &amp;amp; """" &amp;amp; vDelimiter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; next&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vContent = vContent &amp;amp; chr(10)&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;msgbox vContent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set fso = CreateObject("Scripting.FileSystemObject")&lt;/P&gt;&lt;P&gt;set File = fso.OpenTextFile("\\YourServer\d\Test.csv", 2, true)&lt;/P&gt;&lt;P&gt;File.Writeline vContent&lt;/P&gt;&lt;P&gt;File.Close&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;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2016 15:11:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-CSV-with-quotation-marks/m-p/1138392#M373428</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-08-11T15:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Export to CSV with quotation marks</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-CSV-with-quotation-marks/m-p/1138393#M373429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;thank you for that vba Script.&lt;/P&gt;&lt;P&gt;It works perfectly, just does what i need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Johann&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2016 07:32:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-CSV-with-quotation-marks/m-p/1138393#M373429</guid>
      <dc:creator>johann_bauer</dc:creator>
      <dc:date>2016-08-12T07:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: Export to CSV with quotation marks</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-CSV-with-quotation-marks/m-p/1138394#M373430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a similier situation like Johann.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 questions over here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. The above macro will run on server side or on client side?&lt;/P&gt;&lt;P&gt;2. Is the above macro independent of OS. Meaning will it run on MAC?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hiren Jadiya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Jun 2018 00:26:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-CSV-with-quotation-marks/m-p/1138394#M373430</guid>
      <dc:creator>hirenjadiya</dc:creator>
      <dc:date>2018-06-24T00:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: Export to CSV with quotation marks</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-CSV-with-quotation-marks/m-p/1138395#M373431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I never tried it on the server side else only with the desktop client on the server or the local machine or with the IE plugin. Regarding to the MAC I don't know if MAC supports VBS - AFAIK VBA is supported by using MS Office for MAC but if it includes all necessary libraries for VBS ... ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Jun 2018 16:54:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-CSV-with-quotation-marks/m-p/1138395#M373431</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-06-24T16:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: Export to CSV with quotation marks</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-CSV-with-quotation-marks/m-p/1834481#M1214781</link>
      <description>&lt;P&gt;Hi Hiren&lt;/P&gt;&lt;P&gt;Were you able to get this working in Accesspoint?&lt;/P&gt;&lt;P&gt;Its working on the desktop client but not with accesspoint.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Viven&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 22:26:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-CSV-with-quotation-marks/m-p/1834481#M1214781</guid>
      <dc:creator>VivenReddy</dc:creator>
      <dc:date>2021-09-07T22:26:40Z</dc:date>
    </item>
  </channel>
</rss>

