<?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 Export Table Macro in QV 10 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Export-Table-Macro-in-QV-10/m-p/166156#M502053</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am trying to write a macro to export data from a table from QV to an excel spreadsheet. I am new to this and so I am having trouble debugging and fixing the error that I am receiving. Here is the macro so far..&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Set AD=ActiveDocument&lt;BR /&gt;Set MN=AD.Fields("Month_Name")&lt;BR /&gt;Set XLApp = CreateObject("Excel.Application")&lt;BR /&gt;Path = "&lt;A&gt;RightPath&lt;/A&gt;"&lt;BR /&gt;FileName = "RigthFile.xls"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;XLApp.Visible=True&lt;BR /&gt;Set XLS = XLApp.Workbooks.Open(Path &amp;amp; FileName)&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;XLS.Worksheets("JanData").Visible = True&lt;/P&gt;&lt;P&gt;'Jan&lt;BR /&gt;MN.Select "Jan"&lt;BR /&gt;ActiveDocument.GetSheetObject(6).CopyTableToClipboard True&lt;BR /&gt;&lt;STRONG&gt;XLS.Worksheets("JanData").Range("B1").Select&lt;BR /&gt;&lt;/STRONG&gt;XLS.Worksheets("JanData").Paste()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****Then I get this error on the bolded and underlined row:"Select method of Range class failed"&lt;/P&gt;&lt;P&gt;Any suggestions as to why this macro errors out on this row would be great.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Austin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Jan 2011 16:56:58 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-01-12T16:56:58Z</dc:date>
    <item>
      <title>Export Table Macro in QV 10</title>
      <link>https://community.qlik.com/t5/QlikView/Export-Table-Macro-in-QV-10/m-p/166156#M502053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am trying to write a macro to export data from a table from QV to an excel spreadsheet. I am new to this and so I am having trouble debugging and fixing the error that I am receiving. Here is the macro so far..&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Set AD=ActiveDocument&lt;BR /&gt;Set MN=AD.Fields("Month_Name")&lt;BR /&gt;Set XLApp = CreateObject("Excel.Application")&lt;BR /&gt;Path = "&lt;A&gt;RightPath&lt;/A&gt;"&lt;BR /&gt;FileName = "RigthFile.xls"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;XLApp.Visible=True&lt;BR /&gt;Set XLS = XLApp.Workbooks.Open(Path &amp;amp; FileName)&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;XLS.Worksheets("JanData").Visible = True&lt;/P&gt;&lt;P&gt;'Jan&lt;BR /&gt;MN.Select "Jan"&lt;BR /&gt;ActiveDocument.GetSheetObject(6).CopyTableToClipboard True&lt;BR /&gt;&lt;STRONG&gt;XLS.Worksheets("JanData").Range("B1").Select&lt;BR /&gt;&lt;/STRONG&gt;XLS.Worksheets("JanData").Paste()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****Then I get this error on the bolded and underlined row:"Select method of Range class failed"&lt;/P&gt;&lt;P&gt;Any suggestions as to why this macro errors out on this row would be great.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Austin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jan 2011 16:56:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-Table-Macro-in-QV-10/m-p/166156#M502053</guid>
      <dc:creator />
      <dc:date>2011-01-12T16:56:58Z</dc:date>
    </item>
    <item>
      <title>Export Table Macro in QV 10</title>
      <link>https://community.qlik.com/t5/QlikView/Export-Table-Macro-in-QV-10/m-p/166157#M502054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I needed to add these two lines of code before the .Select line&lt;/P&gt;&lt;P&gt;XLS.Worksheets("JanData").Visible = True&lt;/P&gt;&lt;P&gt;XLS.Worksheets("JanData").Activate&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jan 2011 22:58:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-Table-Macro-in-QV-10/m-p/166157#M502054</guid>
      <dc:creator />
      <dc:date>2011-01-13T22:58:17Z</dc:date>
    </item>
  </channel>
</rss>

