<?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 export variables into an existing Excel file in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-to-export-variables-into-an-existing-Excel-file/m-p/1359367#M618934</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great Giancarlo! Happy weekend!! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 21 May 2017 06:37:10 GMT</pubDate>
    <dc:creator>tamilarasu</dc:creator>
    <dc:date>2017-05-21T06:37:10Z</dc:date>
    <item>
      <title>Macro to export variables into an existing Excel file</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-export-variables-into-an-existing-Excel-file/m-p/1359362#M618929</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;&lt;/P&gt;&lt;P&gt;I need of a Macro to export variables values into specific cells of an existing Excel file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2017 08:38:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-export-variables-into-an-existing-Excel-file/m-p/1359362#M618929</guid>
      <dc:creator>giancarlo_corra</dc:creator>
      <dc:date>2017-05-17T08:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to export variables into an existing Excel file</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-export-variables-into-an-existing-Excel-file/m-p/1359363#M618930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Giancarlo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes. Please upload a sample and expected output here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 08:09:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-export-variables-into-an-existing-Excel-file/m-p/1359363#M618930</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2017-05-18T08:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to export variables into an existing Excel file</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-export-variables-into-an-existing-Excel-file/m-p/1359364#M618931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tamil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance for the answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a .qvw file with 3 variables:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Var1=10&lt;/LI&gt;&lt;LI&gt;Var2='test'&lt;/LI&gt;&lt;LI&gt;Var3=57&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I'd like to export these variable values (through a macro) into an existing .xlsm file in these cells:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Var1 into (1,1)&lt;/LI&gt;&lt;LI&gt;Var2 into (3,2)&lt;/LI&gt;&lt;LI&gt;Var3 into (4,7)&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 08:16:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-export-variables-into-an-existing-Excel-file/m-p/1359364#M618931</guid>
      <dc:creator>giancarlo_corra</dc:creator>
      <dc:date>2017-05-18T08:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to export variables into an existing Excel file</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-export-variables-into-an-existing-Excel-file/m-p/1359365#M618932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Giancarlo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the delay in response. I was held up with work.I am here with attaching a file which is dynamic. Please have a look and do not hesitate to contact me if you want any changes. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; color: #ffff00; text-decoration: underline;"&gt;&lt;STRONG style="color: #0000ff; text-decoration: underline;"&gt;Code:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sub Test&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dim XLApp, XLSheet&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FileName = ActiveDocument.Variables("vExportPath").GetContent.String&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt;"&gt;Var1 = ActiveDocument.Variables("Var1").GetContent.String&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Var2 = ActiveDocument.Variables("Var2").GetContent.String&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Var3 = ActiveDocument.Variables("Var3").GetContent.String&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Set XLApp&amp;nbsp; = CreateObject("Excel.Application")&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;XLApp.Visible = True 'False to hide the excel&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;XLApp.Workbooks.Open(FileName)&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;set XLSheet = XLApp.Worksheets(1)&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;XLSheet.Cells(1,1).Value =&amp;nbsp; Var1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;XLSheet.Cells(3,2).Value =&amp;nbsp; Var2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;XLSheet.Cells(4,7).Value =&amp;nbsp; Var3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt;"&gt;XLSheet.Saveas FileName&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;XLApp.Application.quit&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;set XLSheet = Nothing&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;set XLApp = Nothing&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Msgbox "Variables are exported sucessfully!!"&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;End Sub&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;Note: &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;Don't forget to change the Current local security to "Allow System Access" while running the macro. If you forget to change, Qlikview will not be able to open the excel file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;IMG __jive_id="164020" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/164020_Capture.PNG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Good luck!!&lt;/SPAN&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2017 08:44:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-export-variables-into-an-existing-Excel-file/m-p/1359365#M618932</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2017-05-19T08:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to export variables into an existing Excel file</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-export-variables-into-an-existing-Excel-file/m-p/1359366#M618933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much Tamil &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2017 12:38:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-export-variables-into-an-existing-Excel-file/m-p/1359366#M618933</guid>
      <dc:creator>giancarlo_corra</dc:creator>
      <dc:date>2017-05-19T12:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to export variables into an existing Excel file</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-export-variables-into-an-existing-Excel-file/m-p/1359367#M618934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great Giancarlo! Happy weekend!! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 May 2017 06:37:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-export-variables-into-an-existing-Excel-file/m-p/1359367#M618934</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2017-05-21T06:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to export variables into an existing Excel file</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-export-variables-into-an-existing-Excel-file/m-p/1359368#M618935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tamil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need your help one more time &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to export an image (loaded with bundle) into an existing Excel through a macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 May 2017 15:57:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-export-variables-into-an-existing-Excel-file/m-p/1359368#M618935</guid>
      <dc:creator>giancarlo_corra</dc:creator>
      <dc:date>2017-05-22T15:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to export variables into an existing Excel file</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-export-variables-into-an-existing-Excel-file/m-p/1359369#M618936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Giancarlo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, this is not possible as far as I know. Once I tried to answer someone in the community and realized that it's not possible. Sorry for not being of any help in this case. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/plain.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/67764"&gt;exporting table into excel with keeping numbers and images into it&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 May 2017 16:09:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-export-variables-into-an-existing-Excel-file/m-p/1359369#M618936</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2017-05-22T16:09:59Z</dc:date>
    </item>
  </channel>
</rss>

