<?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: Macro to autofill excel in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-to-autofill-excel/m-p/510780#M1141931</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It should work - see here: &lt;A href="http://www.tek-tips.com/viewthread.cfm?qid=1381685" title="http://www.tek-tips.com/viewthread.cfm?qid=1381685"&gt;VBScript - Autofill in Excel&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not you could also use a copy + select range (after counting) + paste.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Sep 2013 14:16:21 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2013-09-11T14:16:21Z</dc:date>
    <item>
      <title>Macro to autofill excel</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-autofill-excel/m-p/510779#M1141929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a macro that sends data to excel. I am trying to autofill the formula I am adding in Cell E2, all the way to the last row that has data in column A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;ActiveDocument.GetSheetObject("TB01").CopyTableToClipboard true&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;XLSheet2.Paste XLSheet2.Range("A1")&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;XLApp.Worksheets(2).Range("E:E").Insert&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;XLSheet2.Range("E2").Formula = "=concatenate(D2,A2)"&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;???????&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Excel VBA I would do this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030; font-family: verdana, sans-serif; font-size: 12px;"&gt;Selection.Autofill Destination:=Range("E2:E" &amp;amp; Range("A" &amp;amp; Rows.Count).End(xlUp).Row)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030; font-family: verdana, sans-serif; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030; font-family: verdana, sans-serif; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030; font-family: verdana, sans-serif; font-size: 12px;"&gt;Any idea how to do this in a QB macro?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2013 14:02:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-autofill-excel/m-p/510779#M1141929</guid>
      <dc:creator>gerhardl</dc:creator>
      <dc:date>2013-09-11T14:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to autofill excel</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-autofill-excel/m-p/510780#M1141931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It should work - see here: &lt;A href="http://www.tek-tips.com/viewthread.cfm?qid=1381685" title="http://www.tek-tips.com/viewthread.cfm?qid=1381685"&gt;VBScript - Autofill in Excel&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not you could also use a copy + select range (after counting) + paste.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2013 14:16:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-autofill-excel/m-p/510780#M1141931</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2013-09-11T14:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to autofill excel</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-autofill-excel/m-p/510781#M1141933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, I managed like this eventually:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ActiveDocument.GetSheetObject("TB01").CopyTableToClipboard true&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;XLSheet2.Paste XLSheet2.Range("A1")&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;XLApp.Worksheets(2).Range("F:F").Insert&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;LastRow = XLSheet2.Range("A65535").End(-4162).Row&amp;nbsp; &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;XLSheet2.Range("F1") = "Card No"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;XLSheet2.Range("F2").Formula = "=concatenate(D2,E2)"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;XLSheet2.Range("F2").AutoFill XLSheet2.Range("F2:F"&amp;amp; LastRow)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2013 14:32:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-autofill-excel/m-p/510781#M1141933</guid>
      <dc:creator>gerhardl</dc:creator>
      <dc:date>2013-09-11T14:32:48Z</dc:date>
    </item>
  </channel>
</rss>

