<?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 Help needed for Macro alternative for Data Appending in Excel in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-needed-for-Macro-alternative-for-Data-Appending-in-Excel/m-p/1174454#M381372</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Qlikview dashboard in which we have to append User given data to an external existing Excel file. I have Input Box, List box to take User input and a button is created which takes the value present in the form and appends it to an existing Excel file. I am able to achieve this via Run Macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written a macro as below and this works correctly. However, I have been asked to look for a solution beyond Macro since Macros are not allowed on my Client's machines. Can you kindly suggest solutions. I have read about Extensions but do not know How to implement it in my context. Kindly suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Macro Code(Comments_Kuldeep.xls is the file which I want to append my form Data to, For sampling I populate only ColumnA and H):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub AppendDataToExcel&amp;nbsp; &lt;/P&gt;&lt;P&gt;dim doc, xlApp, xlDoc, xlSheet, LastRow&amp;nbsp; &lt;/P&gt;&lt;P&gt;Const xlUp = -4162&amp;nbsp; &lt;/P&gt;&lt;P&gt;set doc = ActiveDocument&amp;nbsp; &lt;/P&gt;&lt;P&gt;Set xlApp = CreateObject("Excel.Application")&amp;nbsp; &lt;/P&gt;&lt;P&gt;Set xlDoc = xlApp.Workbooks.Open("C:\Users\admin\Desktop\Aasif_20July\Current\Comments\Comments_Kuldeep.xls")&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;xlapp.Visible = false&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Set xlSheet = xlDoc.Worksheets("Sheet1")&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;xlSheet.Activate&amp;nbsp; &lt;/P&gt;&lt;P&gt;LastRow = xlSheet.Cells(xlSheet.Rows.Count, 1).End(xlUp).Row + 1 &lt;/P&gt;&lt;P&gt;msgbox LastRow&amp;nbsp; &lt;/P&gt;&lt;P&gt;xlSheet.Cells(LastRow + 1, 1).Select &lt;/P&gt;&lt;P&gt;dim Kr1,Kr2,Kr3&lt;/P&gt;&lt;P&gt;set Kr1 = ActiveDocument.Variables("vCommentsUPC")&lt;/P&gt;&lt;P&gt;set Kr2 = ActiveDocument.Variables("vDept_Comment")&lt;/P&gt;&lt;P&gt;xlSheet.Range("A"&amp;amp;LastRow).value = Kr1.GetContent.String&lt;/P&gt;&lt;P&gt;xlSheet.Range("H"&amp;amp;LastRow).value = Kr2.GetContent.String&lt;/P&gt;&lt;P&gt;xlDoc.Save&amp;nbsp; &lt;/P&gt;&lt;P&gt;xlDoc.Close&amp;nbsp; &lt;/P&gt;&lt;P&gt;xlApp.Quit &lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Kuldeep. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Jul 2016 04:57:06 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-07-29T04:57:06Z</dc:date>
    <item>
      <title>Help needed for Macro alternative for Data Appending in Excel</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-for-Macro-alternative-for-Data-Appending-in-Excel/m-p/1174454#M381372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Qlikview dashboard in which we have to append User given data to an external existing Excel file. I have Input Box, List box to take User input and a button is created which takes the value present in the form and appends it to an existing Excel file. I am able to achieve this via Run Macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written a macro as below and this works correctly. However, I have been asked to look for a solution beyond Macro since Macros are not allowed on my Client's machines. Can you kindly suggest solutions. I have read about Extensions but do not know How to implement it in my context. Kindly suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Macro Code(Comments_Kuldeep.xls is the file which I want to append my form Data to, For sampling I populate only ColumnA and H):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub AppendDataToExcel&amp;nbsp; &lt;/P&gt;&lt;P&gt;dim doc, xlApp, xlDoc, xlSheet, LastRow&amp;nbsp; &lt;/P&gt;&lt;P&gt;Const xlUp = -4162&amp;nbsp; &lt;/P&gt;&lt;P&gt;set doc = ActiveDocument&amp;nbsp; &lt;/P&gt;&lt;P&gt;Set xlApp = CreateObject("Excel.Application")&amp;nbsp; &lt;/P&gt;&lt;P&gt;Set xlDoc = xlApp.Workbooks.Open("C:\Users\admin\Desktop\Aasif_20July\Current\Comments\Comments_Kuldeep.xls")&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;xlapp.Visible = false&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Set xlSheet = xlDoc.Worksheets("Sheet1")&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;xlSheet.Activate&amp;nbsp; &lt;/P&gt;&lt;P&gt;LastRow = xlSheet.Cells(xlSheet.Rows.Count, 1).End(xlUp).Row + 1 &lt;/P&gt;&lt;P&gt;msgbox LastRow&amp;nbsp; &lt;/P&gt;&lt;P&gt;xlSheet.Cells(LastRow + 1, 1).Select &lt;/P&gt;&lt;P&gt;dim Kr1,Kr2,Kr3&lt;/P&gt;&lt;P&gt;set Kr1 = ActiveDocument.Variables("vCommentsUPC")&lt;/P&gt;&lt;P&gt;set Kr2 = ActiveDocument.Variables("vDept_Comment")&lt;/P&gt;&lt;P&gt;xlSheet.Range("A"&amp;amp;LastRow).value = Kr1.GetContent.String&lt;/P&gt;&lt;P&gt;xlSheet.Range("H"&amp;amp;LastRow).value = Kr2.GetContent.String&lt;/P&gt;&lt;P&gt;xlDoc.Save&amp;nbsp; &lt;/P&gt;&lt;P&gt;xlDoc.Close&amp;nbsp; &lt;/P&gt;&lt;P&gt;xlApp.Quit &lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Kuldeep. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 04:57:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-for-Macro-alternative-for-Data-Appending-in-Excel/m-p/1174454#M381372</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-29T04:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed for Macro alternative for Data Appending in Excel</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-for-Macro-alternative-for-Data-Appending-in-Excel/m-p/1174455#M381373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why would you use Qlikview to append data to an excel file??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 08:23:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-for-Macro-alternative-for-Data-Appending-in-Excel/m-p/1174455#M381373</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2016-07-29T08:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed for Macro alternative for Data Appending in Excel</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-for-Macro-alternative-for-Data-Appending-in-Excel/m-p/1174456#M381374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the response Vineet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Presently, we have an external system which gets opened from Qlikview using Open URL which does the job of saving the Excel data.&lt;/P&gt;&lt;P&gt;However, we want to get rid of the external system and make everything work in Qlikview. With 'Dynamic Update' feature, I am able to achieve the Data saving in Qlik but a Reload flushes out this saved data since it reads from input excel file and hence saving in the Excel file is pretty much needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly suggest if there is some solution. (Partial Reload and Incremental Reload will not help either) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 08:35:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-for-Macro-alternative-for-Data-Appending-in-Excel/m-p/1174456#M381374</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-29T08:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed for Macro alternative for Data Appending in Excel</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-for-Macro-alternative-for-Data-Appending-in-Excel/m-p/1174457#M381375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to enable the end user to be able to refresh the document&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if they can , then take the user input during reload&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let variable1 = input('enter value for field1','YourCaption');&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;let variable2 = input('enter value for field2','YourCaption');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLEX:&lt;/P&gt;&lt;P&gt;LOAD&amp;nbsp; *&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;filename.&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;CSV(txt) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CONCATENATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;fieldname,fieldname2..,.,...,....&lt;/P&gt;&lt;P&gt;Variable1 , variable2...,..,.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Store &lt;SPAN style="font-size: 13.3333px;"&gt;TABLEX INTO&amp;nbsp; fullpath.filename.&lt;/SPAN&gt;CSV(txt)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But can guarantee simultaneous updates with this method.. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 09:06:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-for-Macro-alternative-for-Data-Appending-in-Excel/m-p/1174457#M381375</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2016-07-29T09:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed for Macro alternative for Data Appending in Excel</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-for-Macro-alternative-for-Data-Appending-in-Excel/m-p/1174458#M381376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this blog:&lt;A href="http://www.qlikblog.at/" title="http://www.qlikblog.at/"&gt;qlikblog.at | QlikView / Qlik Sense Blog by Stefan Walther&lt;/A&gt;, you can fine a lot Information to your issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;beck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 09:11:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-for-Macro-alternative-for-Data-Appending-in-Excel/m-p/1174458#M381376</guid>
      <dc:creator>beck_bakytbek</dc:creator>
      <dc:date>2016-07-29T09:11:00Z</dc:date>
    </item>
  </channel>
</rss>

