<?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: How to delete rows in exported excel using macro? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-delete-rows-in-exported-excel-using-macro/m-p/754154#M1043103</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what ever fields are not required can be de selected and can run the macro...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Dec 2014 05:29:11 GMT</pubDate>
    <dc:creator>vardhancse</dc:creator>
    <dc:date>2014-12-02T05:29:11Z</dc:date>
    <item>
      <title>How to delete rows in exported excel using macro?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-delete-rows-in-exported-excel-using-macro/m-p/754153#M1043102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have written a macro to export tables to a single sheet and it works fine. But I want to delete few specific rows and cells in the exported excel. How do I define it in a macro staticly?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2020 18:02:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-delete-rows-in-exported-excel-using-macro/m-p/754153#M1043102</guid>
      <dc:creator />
      <dc:date>2020-11-20T18:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete rows in exported excel using macro?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-delete-rows-in-exported-excel-using-macro/m-p/754154#M1043103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what ever fields are not required can be de selected and can run the macro...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2014 05:29:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-delete-rows-in-exported-excel-using-macro/m-p/754154#M1043103</guid>
      <dc:creator>vardhancse</dc:creator>
      <dc:date>2014-12-02T05:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete rows in exported excel using macro?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-delete-rows-in-exported-excel-using-macro/m-p/1536463#M1043104</link>
      <description>&lt;P&gt;I know this is an old thread but for me it was as simple as using&lt;/P&gt;&lt;P&gt;XLSheet1.Columns("A:E").Delete&lt;/P&gt;&lt;P&gt;in my macro VBA in Qlikview to remove those columns&lt;/P&gt;&lt;P&gt;eg - extracting a table to excel, formatting and removing some columns&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;sub test1&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SET XLApp = CreateObject("Excel.Application")&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; XLApp.Visible = true&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&amp;nbsp;&amp;nbsp; SET XLDoc = XLApp.Workbooks.Add&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&amp;nbsp;&amp;nbsp; SET XLSheet1 = XLDoc.Worksheets(1)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;'Table export&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&amp;nbsp;&amp;nbsp; ActiveDocument.GetSheetObject("CH77").CopyTableToClipboard (true)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&amp;nbsp;&amp;nbsp; XLSheet1.Paste XLSheet1.Range("A1")&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&amp;nbsp;&amp;nbsp; XLSheet1.Name = "E200 - Salary"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;'AutoFit All Columns on Worksheet&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&amp;nbsp;&amp;nbsp; XLSheet1.Columns("H:H").ColumnWidth = 80&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&amp;nbsp;&amp;nbsp; XLSheet1.Columns("G:G").ColumnWidth = 80&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&amp;nbsp;&amp;nbsp; XLSheet1.Columns("A:E").Delete&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&amp;nbsp;&amp;nbsp; XLSheet1.Range("E1").Activate&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&amp;nbsp;&amp;nbsp; XLSheet1.Range("A1").Select&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&amp;nbsp;&amp;nbsp; XLSheet1.Cells.Select&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&amp;nbsp;&amp;nbsp; XLSheet1.Cells.EntireColumn.AutoFit&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&amp;nbsp;&amp;nbsp; XLSheet1.Cells.EntireRow.AutoFit&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&amp;nbsp;&amp;nbsp; XLSheet1.Columns("E:E").Select&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&amp;nbsp;&amp;nbsp; XLSheet1.Columns("E:E").Style = "Comma"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&amp;nbsp;&amp;nbsp; XLSheet1.Range("A1").Select&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;end sub&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2019 11:28:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-delete-rows-in-exported-excel-using-macro/m-p/1536463#M1043104</guid>
      <dc:creator>aworrall</dc:creator>
      <dc:date>2019-01-29T11:28:08Z</dc:date>
    </item>
  </channel>
</rss>

