<?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: CopyTableToClipboard &amp; Paste into excel supress consecutive spaces in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/CopyTableToClipboard-Paste-into-excel-supress-consecutive-spaces/m-p/1257814#M851210</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes! It works. Thank you!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Mar 2017 07:19:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-03-10T07:19:01Z</dc:date>
    <item>
      <title>CopyTableToClipboard &amp; Paste into excel supress consecutive spaces</title>
      <link>https://community.qlik.com/t5/QlikView/CopyTableToClipboard-Paste-into-excel-supress-consecutive-spaces/m-p/1257809#M851204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using a Macro to export a straight Table to excel with the CopyTableToClipboard method. I have one dimension that is calculated as some consecutive spaces + a text, to achieve indentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem I have is that &lt;SPAN style="font-size: 13.3333px;"&gt;CopyTableToClipboard &lt;/SPAN&gt; &amp;amp; then Paste into an Excel sheet, deletes the consecutive spaces, losing the indentation in the resulting excel sheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried to format the excel cells as text, before and after pasting, but the problem also happens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help me to solve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/CopyTableToClipboard-Paste-into-excel-supress-consecutive-spaces/m-p/1257809#M851204</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: CopyTableToClipboard &amp; Paste into excel supress consecutive spaces</title>
      <link>https://community.qlik.com/t5/QlikView/CopyTableToClipboard-Paste-into-excel-supress-consecutive-spaces/m-p/1257810#M851205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using the export method of the striaght table&lt;/P&gt;&lt;P&gt;Export("C:\Users\xxxx\Documents\Test1.csv", ",")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hth&lt;/P&gt;&lt;P&gt;Sas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Mar 2017 10:03:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/CopyTableToClipboard-Paste-into-excel-supress-consecutive-spaces/m-p/1257810#M851205</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2017-03-09T10:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: CopyTableToClipboard &amp; Paste into excel supress consecutive spaces</title>
      <link>https://community.qlik.com/t5/QlikView/CopyTableToClipboard-Paste-into-excel-supress-consecutive-spaces/m-p/1257811#M851206</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;this is a sample table:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="table1.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/155800_table1.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;and the resulting excel sheet:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="excel1.jpg" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/155801_excel1.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see, cells A2 and B2 don't have the leading spaces.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the code:&lt;/P&gt;&lt;P&gt;Sub ExportTabla&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Set obj = ActiveDocument.GetSheetObject("CH01")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Set XLApp = CreateObject("Excel.Application")&lt;/P&gt;&lt;P&gt;&amp;nbsp; Set XLDoc = XLApp.Workbooks.Add &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Set curSheet = XLDoc.WorkSheets(XLDoc.Sheets.Count)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; curSheet.Range("A1").Select&lt;/P&gt;&lt;P&gt;&amp;nbsp; obj.CopyTableToClipboard true&lt;/P&gt;&lt;P&gt;&amp;nbsp; curSheet.Paste&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Sorry but I cannot attach the qvw file, I don't know why I don't have the "Advanced edit" option )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Mar 2017 16:32:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/CopyTableToClipboard-Paste-into-excel-supress-consecutive-spaces/m-p/1257811#M851206</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-09T16:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: CopyTableToClipboard &amp; Paste into excel supress consecutive spaces</title>
      <link>https://community.qlik.com/t5/QlikView/CopyTableToClipboard-Paste-into-excel-supress-consecutive-spaces/m-p/1257812#M851207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Did you try the csv option?&lt;/P&gt;&lt;P&gt;ActiveDocument.GetSheetObject("CH32").Export "C:\Test\Test1.csv", "," &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Mar 2017 17:36:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/CopyTableToClipboard-Paste-into-excel-supress-consecutive-spaces/m-p/1257812#M851207</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2017-03-09T17:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: CopyTableToClipboard &amp; Paste into excel supress consecutive spaces</title>
      <link>https://community.qlik.com/t5/QlikView/CopyTableToClipboard-Paste-into-excel-supress-consecutive-spaces/m-p/1257813#M851209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please try the following chr.. It seems to be reataining the spaces after the export&lt;/P&gt;&lt;P&gt;=Repeat(chr(160),5)&amp;amp;' Test ' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hth&lt;/P&gt;&lt;P&gt;Sas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Mar 2017 18:10:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/CopyTableToClipboard-Paste-into-excel-supress-consecutive-spaces/m-p/1257813#M851209</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2017-03-09T18:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: CopyTableToClipboard &amp; Paste into excel supress consecutive spaces</title>
      <link>https://community.qlik.com/t5/QlikView/CopyTableToClipboard-Paste-into-excel-supress-consecutive-spaces/m-p/1257814#M851210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes! It works. Thank you!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2017 07:19:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/CopyTableToClipboard-Paste-into-excel-supress-consecutive-spaces/m-p/1257814#M851210</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-10T07:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: CopyTableToClipboard &amp; Paste into excel supress consecutive spaces</title>
      <link>https://community.qlik.com/t5/QlikView/CopyTableToClipboard-Paste-into-excel-supress-consecutive-spaces/m-p/1257815#M851211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your question is now answered, please flag the Correct Answer (via the big "Correct Answer" button near every post) and Helpful Answers (found under the Actions menu under every post).&lt;/P&gt;&lt;P&gt;If not, please make clear what part of this topic you still need help with &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2017 08:25:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/CopyTableToClipboard-Paste-into-excel-supress-consecutive-spaces/m-p/1257815#M851211</guid>
      <dc:creator>oknotsen</dc:creator>
      <dc:date>2017-03-10T08:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: CopyTableToClipboard &amp; Paste into excel supress consecutive spaces</title>
      <link>https://community.qlik.com/t5/QlikView/CopyTableToClipboard-Paste-into-excel-supress-consecutive-spaces/m-p/1257816#M851212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2017 09:57:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/CopyTableToClipboard-Paste-into-excel-supress-consecutive-spaces/m-p/1257816#M851212</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-10T09:57:59Z</dc:date>
    </item>
  </channel>
</rss>

