<?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 Using macro to send to excel in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-macro-to-send-to-excel/m-p/194201#M501193</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried your code but I can't find where it put a border around a table which is my problem. I can already send the table to excel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Feb 2011 11:00:33 GMT</pubDate>
    <dc:creator>asa_runstrom</dc:creator>
    <dc:date>2011-02-01T11:00:33Z</dc:date>
    <item>
      <title>Using macro to send to excel</title>
      <link>https://community.qlik.com/t5/QlikView/Using-macro-to-send-to-excel/m-p/194199#M501191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I send table to excel using this code in a macro&lt;/P&gt;&lt;P&gt;Set obj = ActiveDocument.GetSheetObject(ObjectID)&lt;/P&gt;&lt;P&gt;obj.CopyTableToClipboard True&lt;/P&gt;&lt;P&gt;Now I must put border around the table put the problem is that the size of the table change everytime when you use the application. I have no idea how to do it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jan 2011 13:56:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-macro-to-send-to-excel/m-p/194199#M501191</guid>
      <dc:creator>asa_runstrom</dc:creator>
      <dc:date>2011-01-31T13:56:51Z</dc:date>
    </item>
    <item>
      <title>Using macro to send to excel</title>
      <link>https://community.qlik.com/t5/QlikView/Using-macro-to-send-to-excel/m-p/194200#M501192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;You can try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;&lt;BR /&gt;Function Correos()&lt;BR /&gt;&lt;BR /&gt; Set Doc = ActiveDocument&lt;BR /&gt; Set DocProp = Doc.GetProperties&lt;BR /&gt; Directory = DocProp.MyWorkingDirectory&lt;BR /&gt;&lt;BR /&gt; Doc.GetApplication.Refresh&lt;BR /&gt;&lt;BR /&gt; Set AppExcel = CreateObject("Excel.Application")&lt;BR /&gt;&lt;BR /&gt; AppExcel.Visible = True&lt;BR /&gt;&lt;BR /&gt; AppExcel.WorkBooks.Add()&lt;BR /&gt;&lt;BR /&gt; Set Gra01 = Doc.GetSheetObject("CH16")&lt;BR /&gt; Set Gra02 = Doc.GetSheetObject("CH17")&lt;BR /&gt;&lt;BR /&gt; Set Txt01 = Doc.GetSheetObject("TX13")&lt;BR /&gt;&lt;BR /&gt; // ***************** Se realiza filtro de Negocio y Dummy **********************************************&lt;BR /&gt; ActiveDocument.ClearAll false&lt;BR /&gt;&lt;BR /&gt; ActiveDocument.Fields("Cia").ToggleSelect "010"&lt;BR /&gt; ActiveDocument.Fields("Cia").ToggleSelect "100"&lt;BR /&gt; ActiveDocument.Fields("Cia").ToggleSelect "500"&lt;BR /&gt; ActiveDocument.Fields("Cia").ToggleSelect "700"&lt;BR /&gt;&lt;BR /&gt; ActiveDocument.getApplication.sleep 5000&lt;BR /&gt;&lt;BR /&gt; AppExcel.Sheets.Add()&lt;BR /&gt;&lt;BR /&gt; Txt01.CopyTextToClipboard&lt;BR /&gt; AppExcel.ActiveSheet.Cells(1,3).Activate&lt;BR /&gt; AppExcel.ActiveSheet.Paste&lt;BR /&gt;&lt;BR /&gt; AppExcel.ActiveSheet.Name = "Stock PT"&lt;BR /&gt; AppExcel.ActiveSheet.Cells(4,1).Activate&lt;BR /&gt; Gra01.CopyTableToClipboard True&lt;BR /&gt; AppExcel.ActiveSheet.Paste&lt;BR /&gt; AppExcel.ActiveSheet.Columns("B").Delete&lt;BR /&gt;&lt;BR /&gt; AppExcel.ActiveSheet.Range("B5:AZ20").NumberFormat = ("#,##0")&lt;BR /&gt;&lt;BR /&gt; AppExcel.ActiveSheet.Columns("A").ColumnWidth = 40&lt;BR /&gt; AppExcel.ActiveSheet.Columns("A").AutoFit&lt;BR /&gt;&lt;BR /&gt; ActiveDocument.getApplication.sleep 5000&lt;BR /&gt;&lt;BR /&gt; Set Gra02 = Doc.GetSheetObject("CH17")&lt;BR /&gt; Gra02.CopyBitMapToClipboard&lt;BR /&gt; AppExcel.ActiveSheet.Cells(17,1).Activate&lt;BR /&gt; Gra02.CopyBitMapToClipboard&lt;BR /&gt; AppExcel.ActiveSheet.Paste&lt;BR /&gt;&lt;BR /&gt; AppExcel.ActiveSheet.Cells(1,1).Activate&lt;BR /&gt;&lt;BR /&gt; // ********************* Salva y Cierra el Excel ***************************************&lt;BR /&gt;&lt;BR /&gt; Ruta = Directory &amp;amp; "\Stock" &amp;amp; Year(Now) &amp;amp; Month(Now) &amp;amp; Day(Now) &amp;amp; " a las " &amp;amp; Hour(Now) &amp;amp; Minute(Now) &amp;amp; Second(Now) &amp;amp; ".XLS"&lt;BR /&gt;&lt;BR /&gt; AppExcel.ActiveSheet.SaveAs (Ruta)&lt;BR /&gt;&lt;BR /&gt;End Function&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jan 2011 14:11:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-macro-to-send-to-excel/m-p/194200#M501192</guid>
      <dc:creator />
      <dc:date>2011-01-31T14:11:59Z</dc:date>
    </item>
    <item>
      <title>Using macro to send to excel</title>
      <link>https://community.qlik.com/t5/QlikView/Using-macro-to-send-to-excel/m-p/194201#M501193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried your code but I can't find where it put a border around a table which is my problem. I can already send the table to excel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Feb 2011 11:00:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-macro-to-send-to-excel/m-p/194201#M501193</guid>
      <dc:creator>asa_runstrom</dc:creator>
      <dc:date>2011-02-01T11:00:33Z</dc:date>
    </item>
  </channel>
</rss>

