<?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: Problem QlikView Macro Export to Excel in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-QlikView-Macro-Export-to-Excel/m-p/1656253#M448313</link>
    <description>&lt;P&gt;The fact the Edit Module is opening is indicating some sort of syntax issue in your code.&amp;nbsp; Cannot really debug it for you, what most folks use are msgbox statements to figure out what line is actually causing the issue.&amp;nbsp; There is no debugger in the Edit Module at this point as Microsoft stopped supporting it quite some time ago, so R&amp;amp;D removed it a number of years ago, so you have to resort to other means for debugging things...&amp;nbsp; Hopefully this allows you to figure out where the issue is occurring.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You likely stand a better chance of getting help on this one on the Microsoft forums as well given your code appears to be pretty much straight Windows/Excel API calls, I only see a couple QlikView APIs here.&amp;nbsp; Sorry I am not more help.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
    <pubDate>Tue, 10 Dec 2019 19:58:01 GMT</pubDate>
    <dc:creator>Brett_Bleess</dc:creator>
    <dc:date>2019-12-10T19:58:01Z</dc:date>
    <item>
      <title>Problem QlikView Macro Export to Excel</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-QlikView-Macro-Export-to-Excel/m-p/1652453#M447949</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I have a QlikView document that contains a macro that exports a table to Excel. When the application is first opened on the day, when you reload the document, the macro module opens and does nothing else. I enclose the macro, what is the problem with the macro? Why doen't run it immediately when I open QlikView?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Systems Access Its OK&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sub Export&lt;BR /&gt;filePath = "C:\Users\Administrador\Sales.xlsx"&lt;BR /&gt;Set excelFile = CreateObject("Excel.Application")&lt;BR /&gt;excelFile.Visible = false&lt;BR /&gt;Set curWorkBook = excelFile.WorkBooks.Add&lt;BR /&gt;Set curSheet = curWorkBook.WorkSheets(1)&lt;BR /&gt;Set tableToExport = ActiveDocument.GetSheetObject("TB04")&lt;BR /&gt;Set chartProperties = tableToExport.GetProperties&lt;BR /&gt;tableToExport.CopyTableToClipboard true&lt;BR /&gt;chartCaption = tableToExport.GetCaption.Name.v&lt;BR /&gt;curSheet.Range("A1") = chartCaption&lt;BR /&gt;curSheet.Paste curSheet.Range("A1")&lt;BR /&gt;excelFile.Visible = false&lt;BR /&gt;excelFile.DisplayAlerts = False&lt;BR /&gt;excelFile.Visible = false&lt;BR /&gt;curWorkBook.SaveAs filePath&lt;BR /&gt;curWorkBook.Close&lt;BR /&gt;excelFile.Quit&lt;BR /&gt;Set curWorkBook = nothing&lt;BR /&gt;Set excelFile = nothing&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2019 17:26:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-QlikView-Macro-Export-to-Excel/m-p/1652453#M447949</guid>
      <dc:creator>pgalvezt</dc:creator>
      <dc:date>2019-11-28T17:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem QlikView Macro Export to Excel</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-QlikView-Macro-Export-to-Excel/m-p/1656253#M448313</link>
      <description>&lt;P&gt;The fact the Edit Module is opening is indicating some sort of syntax issue in your code.&amp;nbsp; Cannot really debug it for you, what most folks use are msgbox statements to figure out what line is actually causing the issue.&amp;nbsp; There is no debugger in the Edit Module at this point as Microsoft stopped supporting it quite some time ago, so R&amp;amp;D removed it a number of years ago, so you have to resort to other means for debugging things...&amp;nbsp; Hopefully this allows you to figure out where the issue is occurring.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You likely stand a better chance of getting help on this one on the Microsoft forums as well given your code appears to be pretty much straight Windows/Excel API calls, I only see a couple QlikView APIs here.&amp;nbsp; Sorry I am not more help.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2019 19:58:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-QlikView-Macro-Export-to-Excel/m-p/1656253#M448313</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-12-10T19:58:01Z</dc:date>
    </item>
  </channel>
</rss>

