<?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 Delete current selection from excel macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Delete-current-selection-from-excel-macro/m-p/417215#M155131</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am looking for a macro to delete the currently selected data in a chart from a specified .xls &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to write to an excel file via user input in QV, so I know this has to be possible.&amp;nbsp; Trying everything I can think of in VB, but perhaps one of you is/are better than I with VB script? &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, 01 May 2013 13:41:10 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-05-01T13:41:10Z</dc:date>
    <item>
      <title>Delete current selection from excel macro</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-current-selection-from-excel-macro/m-p/417215#M155131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am looking for a macro to delete the currently selected data in a chart from a specified .xls &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to write to an excel file via user input in QV, so I know this has to be possible.&amp;nbsp; Trying everything I can think of in VB, but perhaps one of you is/are better than I with VB script? &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, 01 May 2013 13:41:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-current-selection-from-excel-macro/m-p/417215#M155131</guid>
      <dc:creator />
      <dc:date>2013-05-01T13:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Delete current selection from excel macro</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-current-selection-from-excel-macro/m-p/417216#M155132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Any ideas on this?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a field in the excel document called ' recid ' .&amp;nbsp; It is unique.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In qlikview, I am pulling all of the data from that excel document and displaying it as such.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to create a button that when clicked, deletes the current selection from the excel document.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2013 18:02:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-current-selection-from-excel-macro/m-p/417216#M155132</guid>
      <dc:creator />
      <dc:date>2013-05-02T18:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: Delete current selection from excel macro</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-current-selection-from-excel-macro/m-p/417217#M155133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I fixed this for myself.&amp;nbsp; In case anyone was wondering:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created an inputbox with a variable of vMatchKey.&amp;nbsp; User enters in the record ID to delete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Button with vbscript macro to execute the following:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;sub Excel_DeleteRow&lt;BR /&gt;MatchKey = (ActiveDocument.Variables("vMatchKey").GetContent.string)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set oXL=CreateObject("Excel.Application")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;f_name="C:\attend.xls"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set oWB=oXL.Workbooks.Open(f_name)&lt;BR /&gt;Set oSH=oWB.Worksheets.Item(1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;oSH.Cells.Find(MatchKey, , , , 1, 2).EntireRow.Delete&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;oWB.Save&lt;BR /&gt;oWB.Close&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set oSH=nothing&lt;BR /&gt;Set oWB=nothing&lt;BR /&gt;Set oXL=nothing&lt;BR /&gt;END SUB&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;I now have an app where I can enter in data to an excel data source, and delete from.&amp;nbsp; Works nicely.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2013 19:24:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-current-selection-from-excel-macro/m-p/417217#M155133</guid>
      <dc:creator />
      <dc:date>2013-05-02T19:24:38Z</dc:date>
    </item>
  </channel>
</rss>

