<?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: Export Macro to Excel in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Export-Macro-to-Excel/m-p/842958#M1019470</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks a lot&lt;/P&gt;&lt;P&gt;for your kindness&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Apr 2015 13:44:57 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-04-03T13:44:57Z</dc:date>
    <item>
      <title>Export Macro to Excel</title>
      <link>https://community.qlik.com/t5/QlikView/Export-Macro-to-Excel/m-p/842954#M1019466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have this macro that exports the table in one excel's file, i want that &lt;SPAN style="font-size: 13.3333330154419px;"&gt;excel's file&lt;/SPAN&gt; Name keep the last value of one table's field.&lt;/P&gt;&lt;P&gt;For example: Field A: 2010;2011;2012 the &lt;SPAN style="color: #ff0000;"&gt;name&lt;/SPAN&gt; will be 2012.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Sub&lt;/SPAN&gt; exportExel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;dim&lt;/SPAN&gt; ls_date&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;SPAN style="color: #0000ff;"&gt;set&lt;/SPAN&gt; ExcelSheetApp&amp;nbsp; = &lt;SPAN style="color: #0000ff;"&gt;CreateObject&lt;/SPAN&gt;("Excel.Application")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ExcelSheetApp.Visible = &lt;SPAN style="color: #0000ff;"&gt;false&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set&lt;/SPAN&gt; ExcelWB= ExcelSheetApp.Workbooks.Add&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ExcelWB.Sheets(1).name = "Storico"&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set&lt;/SPAN&gt; XLSheet = ExcelWB.Worksheets(1)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set&lt;/SPAN&gt; QVData = ActiveDocument.GetSheetObject("CH01")&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 13.3333330154419px;"&gt;set&lt;/SPAN&gt; XLSheet = ExcelWB.Worksheets(1)&lt;/P&gt;&lt;P&gt;QVData.CopyTableToClipboard &lt;SPAN style="color: #0000ff;"&gt;true&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XLSheet.Paste XLSheet.Range("A1")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ExcelWB.SaveAs "C:\Users\ut0854\Desktop\Qlik Omicron\Diagnostico\Storico\&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG style="text-decoration: underline;"&gt;NAME OF FILE&lt;/STRONG&gt;&lt;/SPAN&gt;.xlsx", 51&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;ExcelWB.Close&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ExcelSheetApp.Application.Quit&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;End Sub &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2015 08:31:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-Macro-to-Excel/m-p/842954#M1019466</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-02T08:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Export Macro to Excel</title>
      <link>https://community.qlik.com/t5/QlikView/Export-Macro-to-Excel/m-p/842955#M1019467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might store the Max of field A in a variable and use the variable value in the macro to get the filename.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2015 16:20:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-Macro-to-Excel/m-p/842955#M1019467</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2015-04-02T16:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: Export Macro to Excel</title>
      <link>https://community.qlik.com/t5/QlikView/Export-Macro-to-Excel/m-p/842956#M1019468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok thanks.&lt;/P&gt;&lt;P&gt;But after i have created&amp;nbsp; the variable&lt;/P&gt;&lt;P&gt;varmax = Max(Date(DataComp1,'DD/MM/YYYY')) &lt;/P&gt;&lt;P&gt;How can i use the value of this variable in the macro?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2015 07:10:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-Macro-to-Excel/m-p/842956#M1019468</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-03T07:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: Export Macro to Excel</title>
      <link>https://community.qlik.com/t5/QlikView/Export-Macro-to-Excel/m-p/842957#M1019469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is from the API Guide:&lt;/P&gt;&lt;P&gt;set v = ActiveDocument.Variables("Variable1")&lt;/P&gt;&lt;P&gt;msgbox(v.GetContent.String)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2015 10:54:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-Macro-to-Excel/m-p/842957#M1019469</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2015-04-03T10:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: Export Macro to Excel</title>
      <link>https://community.qlik.com/t5/QlikView/Export-Macro-to-Excel/m-p/842958#M1019470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks a lot&lt;/P&gt;&lt;P&gt;for your kindness&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2015 13:44:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-Macro-to-Excel/m-p/842958#M1019470</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-03T13:44:57Z</dc:date>
    </item>
  </channel>
</rss>

