<?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 Excel Row and Change the number in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Excel-Row-and-Change-the-number/m-p/301803#M111708</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an excel file that has a Name in column 1 and a Flag (1 or 0) in column 2. Based on a login (section access) my macro can find the row (persons login name) I need to go to, but I can't seem to get to column 2. The code below will delete the row but how do I move to column 2 and change the number in that column?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub MessageBox&lt;/P&gt;&lt;P&gt;Set oXL=CreateObject("Excel.Application")&lt;/P&gt;&lt;P&gt;set doc = ActiveDocument&lt;/P&gt;&lt;P&gt;doc.fields("DSMSYOUGET").SelectAll&lt;/P&gt;&lt;P&gt;set mySelection = doc.fields("DSMSYOUGET").GetSelectedValues&lt;/P&gt;&lt;P&gt;strIndex = (mySelection.Item(i).text)&lt;/P&gt;&lt;P&gt;msgbox (strIndex)&lt;/P&gt;&lt;P&gt;f_name = "Q:\Developers\SCharles\QlikViewSJC\DSMZone\MessageBoxControl.xls"&lt;/P&gt;&lt;P&gt;set oWB = oXL.Workbooks.Open(f_name)&lt;/P&gt;&lt;P&gt;set oSH = oWB.Worksheets.Item(1)&lt;/P&gt;&lt;P&gt;oSH.Cells.Find(strIndex, , , 2, 1, 2, 0).EntireRow.Delete&lt;/P&gt;&lt;P&gt;oWB.Save&lt;/P&gt;&lt;P&gt;oWB.Close&lt;/P&gt;&lt;P&gt;set oSH = Nothing&lt;/P&gt;&lt;P&gt;set oWB = nothing&lt;/P&gt;&lt;P&gt;set oXL = nothing&lt;/P&gt;&lt;P&gt;msgbox("Done")&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;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Dec 2011 19:51:15 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-12-14T19:51:15Z</dc:date>
    <item>
      <title>Excel Row and Change the number</title>
      <link>https://community.qlik.com/t5/QlikView/Excel-Row-and-Change-the-number/m-p/301803#M111708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an excel file that has a Name in column 1 and a Flag (1 or 0) in column 2. Based on a login (section access) my macro can find the row (persons login name) I need to go to, but I can't seem to get to column 2. The code below will delete the row but how do I move to column 2 and change the number in that column?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub MessageBox&lt;/P&gt;&lt;P&gt;Set oXL=CreateObject("Excel.Application")&lt;/P&gt;&lt;P&gt;set doc = ActiveDocument&lt;/P&gt;&lt;P&gt;doc.fields("DSMSYOUGET").SelectAll&lt;/P&gt;&lt;P&gt;set mySelection = doc.fields("DSMSYOUGET").GetSelectedValues&lt;/P&gt;&lt;P&gt;strIndex = (mySelection.Item(i).text)&lt;/P&gt;&lt;P&gt;msgbox (strIndex)&lt;/P&gt;&lt;P&gt;f_name = "Q:\Developers\SCharles\QlikViewSJC\DSMZone\MessageBoxControl.xls"&lt;/P&gt;&lt;P&gt;set oWB = oXL.Workbooks.Open(f_name)&lt;/P&gt;&lt;P&gt;set oSH = oWB.Worksheets.Item(1)&lt;/P&gt;&lt;P&gt;oSH.Cells.Find(strIndex, , , 2, 1, 2, 0).EntireRow.Delete&lt;/P&gt;&lt;P&gt;oWB.Save&lt;/P&gt;&lt;P&gt;oWB.Close&lt;/P&gt;&lt;P&gt;set oSH = Nothing&lt;/P&gt;&lt;P&gt;set oWB = nothing&lt;/P&gt;&lt;P&gt;set oXL = nothing&lt;/P&gt;&lt;P&gt;msgbox("Done")&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;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2011 19:51:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excel-Row-and-Change-the-number/m-p/301803#M111708</guid>
      <dc:creator />
      <dc:date>2011-12-14T19:51:15Z</dc:date>
    </item>
    <item>
      <title>Excel Row and Change the number</title>
      <link>https://community.qlik.com/t5/QlikView/Excel-Row-and-Change-the-number/m-p/301804#M111709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Good question... anyone know this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2011 23:41:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excel-Row-and-Change-the-number/m-p/301804#M111709</guid>
      <dc:creator />
      <dc:date>2011-12-14T23:41:58Z</dc:date>
    </item>
  </channel>
</rss>

