<?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 CopyTableToClipboard versus SendToExcel in Macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/CopyTableToClipboard-versus-SendToExcel-in-Macro/m-p/108513#M757423</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am struggling with the following problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use this peace of code to get a table from Qlikview into excel in a macro:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Set obj3 = ActiveDocument.GetSheetObject(aSheetObj3(i))&lt;/P&gt;&lt;P&gt; obj3.CopyTableToClipboard True&lt;/P&gt;&lt;P&gt; oSH3.Paste &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which results in a table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="PictureBB.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/213061_PictureBB.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;I extract several tables into one sheet.&lt;/P&gt;&lt;P&gt;However, I would like to have the tables in their original format (qlikview, classic style), especially the table borders should be black instead of a mere grey.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I used&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;obj3.SendToExcel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could achieve that but would no longer be able to extract the tables in their original format, like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Picturebbb.jpg" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/213063_Picturebbb.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a command that specifies that the original format is maintained?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>schumi1980</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>CopyTableToClipboard versus SendToExcel in Macro</title>
      <link>https://community.qlik.com/t5/QlikView/CopyTableToClipboard-versus-SendToExcel-in-Macro/m-p/108513#M757423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am struggling with the following problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use this peace of code to get a table from Qlikview into excel in a macro:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Set obj3 = ActiveDocument.GetSheetObject(aSheetObj3(i))&lt;/P&gt;&lt;P&gt; obj3.CopyTableToClipboard True&lt;/P&gt;&lt;P&gt; oSH3.Paste &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which results in a table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="PictureBB.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/213061_PictureBB.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;I extract several tables into one sheet.&lt;/P&gt;&lt;P&gt;However, I would like to have the tables in their original format (qlikview, classic style), especially the table borders should be black instead of a mere grey.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I used&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;obj3.SendToExcel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could achieve that but would no longer be able to extract the tables in their original format, like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Picturebbb.jpg" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/213063_Picturebbb.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a command that specifies that the original format is maintained?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jan&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-versus-SendToExcel-in-Macro/m-p/108513#M757423</guid>
      <dc:creator>schumi1980</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: CopyTableToClipboard versus SendToExcel in Macro</title>
      <link>https://community.qlik.com/t5/QlikView/CopyTableToClipboard-versus-SendToExcel-in-Macro/m-p/108514#M757424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In regard to several questions of you all regarding Excel exporting/formatting issues - I'm not sure that it's sensible to go this way. Of course with enough efforts it's possible to format everything (if I remember correctly you mentioned a lot of files, sheets and objects) with QlikView and/or Excel macros. I have done a lot stuff like this and know that this could be very expensive especially if there isn't already a quite wide experience of VBA/VBS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Easier than this is to use appropriate prepared Excel files in which all formattings are already done and just to update/change the data. I mean to fill/update one or several (usually hidden) data- and pivot-sheets and all the visible user-content grabbed the data from there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further I suggest to consider the use of NPrinting or similar tools. Of course it adds some extra costs but by larger requirements to export/print/mail data it might be a lot cheaper than developing everything yourself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2018 07:48:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/CopyTableToClipboard-versus-SendToExcel-in-Macro/m-p/108514#M757424</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-09-10T07:48:24Z</dc:date>
    </item>
  </channel>
</rss>

