<?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 Adding rows and deleting rows in an Excel File in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Adding-rows-and-deleting-rows-in-an-Excel-File/m-p/142087#M21643</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here you go:&lt;/P&gt;&lt;P&gt;Sub Excel_DeleteRow&lt;BR /&gt; MatchKey = CLng(ActiveDocument.Variables("vMatchKey").GetContent.String)&lt;/P&gt;&lt;P&gt;Set oXL=CreateObject("Excel.Application")&lt;BR /&gt;&lt;BR /&gt; f_name="C:\Comments.xls"&lt;BR /&gt;&lt;BR /&gt; Set oWB=oXL.Workbooks.Open(f_name)&lt;BR /&gt; Set oSH=oWB.Worksheets.Item(1)&lt;BR /&gt;&lt;BR /&gt; oSH.Cells.Find(MatchKey, , , , 1, 2).EntireRow.Delete&lt;BR /&gt;&lt;BR /&gt; oWB.Save&lt;BR /&gt; oWB.Close&lt;BR /&gt;&lt;BR /&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;I'm not sure about the exact options you would want to use with the Cells.Find( command. This was lifted from another project, but it worked on my sample Excel file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Apr 2009 04:53:15 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-04-22T04:53:15Z</dc:date>
    <item>
      <title>Adding rows and deleting rows in an Excel File</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-rows-and-deleting-rows-in-an-Excel-File/m-p/142080#M21636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have a QV document that handles Expenses vs Budget. We want the user to be able to add comments to an excel file through a QV button. Also, the user needs to be able to remove a comment (meaning deleting a specific row in the file). Any suggestion/code on how to handle this?&lt;/P&gt;&lt;P&gt;I have done this with a Microsoft Access database in 8.2 (32 bit version), but there is no 64 bit drivers and we are on 8.5.&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, 22 Apr 2009 01:19:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-rows-and-deleting-rows-in-an-Excel-File/m-p/142080#M21636</guid>
      <dc:creator />
      <dc:date>2009-04-22T01:19:40Z</dc:date>
    </item>
    <item>
      <title>Adding rows and deleting rows in an Excel File</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-rows-and-deleting-rows-in-an-Excel-File/m-p/142081#M21637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this should be possible, but it could probably get complicated by the end.&lt;/P&gt;&lt;P&gt;First, you will probably need some sort of key field in the Excel file to identify records individually. This would allow you to delete specific record based on the key. The insert would be easy enough, just pull the highest key in the load and increment this value for each new record.&lt;/P&gt;&lt;P&gt;The hard part is obviously the external Excel automation. I'm guessing you already have the code from when you were using the Access database.&lt;/P&gt;&lt;P&gt;Have you checked out the QlikView Maven blog? He has an article which uses the Excel Object Model to &lt;A href="http://qlikviewmaven.blogspot.com/2009/03/browse-for-file-macro-button.html"&gt;create an open file dialog&lt;/A&gt;. The first line in his code creates an Excel Object using: Set oXL=CreateObject("Excel.Application").&lt;/P&gt;&lt;P&gt;This is where my knowledge of the Object Model is a little hazy. I think you then need to create an Excel Document object and set your Excel file to that object. From there, you should be able to use Excel macro code to add and delete lines.&lt;/P&gt;&lt;P&gt;I'm sorry I couldn't give a more precise answer. I'll try to dig out my notes and put together a sample application if needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2009 01:46:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-rows-and-deleting-rows-in-an-Excel-File/m-p/142081#M21637</guid>
      <dc:creator />
      <dc:date>2009-04-22T01:46:12Z</dc:date>
    </item>
    <item>
      <title>Adding rows and deleting rows in an Excel File</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-rows-and-deleting-rows-in-an-Excel-File/m-p/142082#M21638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have an example that would be great!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2009 02:16:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-rows-and-deleting-rows-in-an-Excel-File/m-p/142082#M21638</guid>
      <dc:creator />
      <dc:date>2009-04-22T02:16:38Z</dc:date>
    </item>
    <item>
      <title>Adding rows and deleting rows in an Excel File</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-rows-and-deleting-rows-in-an-Excel-File/m-p/142083#M21639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a quick subroutine which will open an Excel file and change one field before saving and closing the file.&lt;/P&gt;&lt;P&gt;Sub Excel_OLE_Automation&lt;/P&gt;&lt;P&gt;Set oXL=CreateObject("Excel.Application")&lt;/P&gt;&lt;P&gt;f_name=oXL.GetOpenFilename("All Files (*.*),*.*",,"Select file",False)&lt;/P&gt;&lt;P&gt;If f_name="False" then&lt;BR /&gt; 'user cancelled out of dialog box&lt;BR /&gt; Set oXL=nothing&lt;BR /&gt; Exit sub&lt;BR /&gt; End If&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;oSH.Range("A2") = "12345"&lt;/P&gt;&lt;P&gt;oWB.Save&lt;BR /&gt; oWB.Close&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;The actions you need to take on the Excel file will depend on your actual file. Could you give me a little more info on your Excel file format? Is it just one comment per row? Is there any other data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2009 02:28:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-rows-and-deleting-rows-in-an-Excel-File/m-p/142083#M21639</guid>
      <dc:creator />
      <dc:date>2009-04-22T02:28:20Z</dc:date>
    </item>
    <item>
      <title>Adding rows and deleting rows in an Excel File</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-rows-and-deleting-rows-in-an-Excel-File/m-p/142084#M21640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are 5 columns, the first four act as an index (no duplicates) and they are "Year", "Month", Account Number" and "Cost Center Number". The fifth column holds the comments text.&lt;/P&gt;&lt;P&gt;I have a button that is enable if only "one" item is selected in each of the 4 "indexed" items. An input box would also be visible to add the text. The button, when clicked would then add the information to the excel file.&lt;/P&gt;&lt;P&gt;Oh ya, thanks for the code.&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2009 02:41:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-rows-and-deleting-rows-in-an-Excel-File/m-p/142084#M21640</guid>
      <dc:creator />
      <dc:date>2009-04-22T02:41:38Z</dc:date>
    </item>
    <item>
      <title>Adding rows and deleting rows in an Excel File</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-rows-and-deleting-rows-in-an-Excel-File/m-p/142085#M21641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, it sounds like you have the key portion under control. I put together the following subroutine to add a record to the bottom of an Excel file. I seemed to be fighting with the Object Model a bit when it comes to using the Excel macro object Select. You may find an easier (or just more elegant) method for that portion.&lt;/P&gt;&lt;P&gt;Here's the code:&lt;/P&gt;&lt;P&gt;Sub Excel_AddRecord&lt;/P&gt;&lt;P&gt;NewKey = CLng(ActiveDocument.Variables("vMaxKey").GetContent.String) + 1&lt;BR /&gt; NewComment = ActiveDocument.Variables("vNewComment").GetContent.String&lt;/P&gt;&lt;P&gt;Set oXL=CreateObject("Excel.Application")&lt;BR /&gt;&lt;BR /&gt; f_name="C:\Comments.xls"&lt;BR /&gt;&lt;BR /&gt; Set oWB=oXL.Workbooks.Open(f_name)&lt;BR /&gt; Set oSH=oWB.Worksheets.Item(1)&lt;BR /&gt;&lt;BR /&gt; oSH.Range("A65536").End(-4162).Offset(1, 0).FormulaR1C1 = NewKey&lt;BR /&gt; oSH.Range("A65536").End(-4162).Offset(0, 1).FormulaR1C1 = NewComment&lt;BR /&gt;&lt;BR /&gt; ActiveDocument.Variables("vMaxKey").SetContent NewKey, true&lt;BR /&gt;&lt;BR /&gt; oWB.Save&lt;BR /&gt; oWB.Close&lt;BR /&gt;&lt;BR /&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;This was enjoyable to figure out. It seems like we could gain some additional power within QlikView applications by using specialized Excel files. I hope it helps solve your problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2009 03:19:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-rows-and-deleting-rows-in-an-Excel-File/m-p/142085#M21641</guid>
      <dc:creator />
      <dc:date>2009-04-22T03:19:27Z</dc:date>
    </item>
    <item>
      <title>Adding rows and deleting rows in an Excel File</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-rows-and-deleting-rows-in-an-Excel-File/m-p/142086#M21642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Works perfectly.&lt;/P&gt;&lt;P&gt;OK, now that I can add comments, the user may add one and decide that they want to delete it.&lt;/P&gt;&lt;P&gt;Column A of the Excel file holds the unique index number (YearMonthCostCenterAccount for example: 20093US012334999).&lt;/P&gt;&lt;P&gt;Based on the selections in the QV document I know what the unique index is, but how do I find that index in column a of the excel file and then delete that specific row?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2009 04:28:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-rows-and-deleting-rows-in-an-Excel-File/m-p/142086#M21642</guid>
      <dc:creator />
      <dc:date>2009-04-22T04:28:26Z</dc:date>
    </item>
    <item>
      <title>Adding rows and deleting rows in an Excel File</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-rows-and-deleting-rows-in-an-Excel-File/m-p/142087#M21643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here you go:&lt;/P&gt;&lt;P&gt;Sub Excel_DeleteRow&lt;BR /&gt; MatchKey = CLng(ActiveDocument.Variables("vMatchKey").GetContent.String)&lt;/P&gt;&lt;P&gt;Set oXL=CreateObject("Excel.Application")&lt;BR /&gt;&lt;BR /&gt; f_name="C:\Comments.xls"&lt;BR /&gt;&lt;BR /&gt; Set oWB=oXL.Workbooks.Open(f_name)&lt;BR /&gt; Set oSH=oWB.Worksheets.Item(1)&lt;BR /&gt;&lt;BR /&gt; oSH.Cells.Find(MatchKey, , , , 1, 2).EntireRow.Delete&lt;BR /&gt;&lt;BR /&gt; oWB.Save&lt;BR /&gt; oWB.Close&lt;BR /&gt;&lt;BR /&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;I'm not sure about the exact options you would want to use with the Cells.Find( command. This was lifted from another project, but it worked on my sample Excel file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2009 04:53:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-rows-and-deleting-rows-in-an-Excel-File/m-p/142087#M21643</guid>
      <dc:creator />
      <dc:date>2009-04-22T04:53:15Z</dc:date>
    </item>
    <item>
      <title>Adding rows and deleting rows in an Excel File</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-rows-and-deleting-rows-in-an-Excel-File/m-p/142088#M21644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure what is going, but the "oSH.Cells.Find(MatchKey, , , , 1, 2).EntireRow.Delete" doesn't seem to want to delete anything. Have verified that the MatchKey is correct and it is and is in column A. No error messages appear either&lt;/P&gt;&lt;P&gt;Will work on it tomorrow.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2009 06:05:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-rows-and-deleting-rows-in-an-Excel-File/m-p/142088#M21644</guid>
      <dc:creator />
      <dc:date>2009-04-22T06:05:39Z</dc:date>
    </item>
    <item>
      <title>Adding rows and deleting rows in an Excel File</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-rows-and-deleting-rows-in-an-Excel-File/m-p/142089#M21645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It could be caused by the parameters of the Find function. I have an Excel macro that uses Find and here is what it calls each parameter:&lt;/P&gt;&lt;P&gt;Find(What To Find, Search After, Look In, Look At, Search Order, Search Direction, Match Case)&lt;/P&gt;&lt;P&gt;It looks like mine might not have included the Match Case parameter. My keys were numeric, so it didn't matter in testing. In order to ignore case and to search for any match, I should change it to:&lt;/P&gt;&lt;P&gt;oSH.Cells.Find(MatchKey, , , 2, 1, 2, 0).EntireRow.Delete&lt;/P&gt;&lt;P&gt;You could try to open your Excel doc and then record a macro of you manually searching for a key. Then look at the macro code and it should give you the options that made it work. All of my samples are too simple to expose the limitations of the Find function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2009 21:15:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-rows-and-deleting-rows-in-an-Excel-File/m-p/142089#M21645</guid>
      <dc:creator />
      <dc:date>2009-04-22T21:15:29Z</dc:date>
    </item>
    <item>
      <title>Adding rows and deleting rows in an Excel File</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-rows-and-deleting-rows-in-an-Excel-File/m-p/142090#M21646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I have everything working in 8.5 Developer but when users try to added a comment (or delete a comment) when using the Internet Explorer plugin an error message pops up "Macro parse failed. Funtionality was lost." with the caption of the box titled "QlikOcx".&lt;/P&gt;&lt;P&gt;Any ideas what is happening?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2009 00:34:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-rows-and-deleting-rows-in-an-Excel-File/m-p/142090#M21646</guid>
      <dc:creator />
      <dc:date>2009-04-23T00:34:43Z</dc:date>
    </item>
    <item>
      <title>Adding rows and deleting rows in an Excel File</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-rows-and-deleting-rows-in-an-Excel-File/m-p/142091#M21647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Never mind. The problem was that the QV document was linking to a location that the user did not have permissions too.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2009 01:08:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-rows-and-deleting-rows-in-an-Excel-File/m-p/142091#M21647</guid>
      <dc:creator />
      <dc:date>2009-04-23T01:08:40Z</dc:date>
    </item>
    <item>
      <title>Adding rows and deleting rows in an Excel File</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-rows-and-deleting-rows-in-an-Excel-File/m-p/142092#M21648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm getting an error when I try to use the line:&lt;/P&gt;&lt;P&gt;Set oXL = CreateObject("Excel.Application")&lt;/P&gt;&lt;P&gt;it says: ActiveX component can't create object: 'Excel.Application' and qlikview stops responding.&lt;/P&gt;&lt;P&gt;Any idea what's going on? I've tried looking it up but all of the solutions have to do with people using these script functions in web applications.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2009 23:22:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-rows-and-deleting-rows-in-an-Excel-File/m-p/142092#M21648</guid>
      <dc:creator />
      <dc:date>2009-07-08T23:22:32Z</dc:date>
    </item>
    <item>
      <title>Adding rows and deleting rows in an Excel File</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-rows-and-deleting-rows-in-an-Excel-File/m-p/142093#M21649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure but try setting "Requested Module Security" to "System Access" and "Current Locate Security" to "Allow System Access".&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2009 23:50:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-rows-and-deleting-rows-in-an-Excel-File/m-p/142093#M21649</guid>
      <dc:creator />
      <dc:date>2009-07-08T23:50:24Z</dc:date>
    </item>
    <item>
      <title>Adding rows and deleting rows in an Excel File</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-rows-and-deleting-rows-in-an-Excel-File/m-p/142094#M21650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thats seems to have gotten rid of the error at that point in the script, but qlikview still crashes whenever I try to test it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2009 00:49:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-rows-and-deleting-rows-in-an-Excel-File/m-p/142094#M21650</guid>
      <dc:creator />
      <dc:date>2009-07-09T00:49:51Z</dc:date>
    </item>
    <item>
      <title>Adding rows and deleting rows in an Excel File</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-rows-and-deleting-rows-in-an-Excel-File/m-p/142095#M21651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the crashing problem seems to have gone away.&lt;/P&gt;&lt;P&gt;My set up is very similar to sjcharles' in that I am only allowing these comments to be entered when a single Order ID is selected. My question is, from within the script, how do you put the selected Order ID into the excel document? How do I reference it in the script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2009 01:32:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-rows-and-deleting-rows-in-an-Excel-File/m-p/142095#M21651</guid>
      <dc:creator />
      <dc:date>2009-07-09T01:32:05Z</dc:date>
    </item>
    <item>
      <title>Adding rows and deleting rows in an Excel File</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-rows-and-deleting-rows-in-an-Excel-File/m-p/142096#M21652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To get the selected value, use the QlikView function: GetFieldSelections(Order_ID).&lt;/P&gt;&lt;P&gt;I would create a variable with the definition: =GetFieldSelections(Order_ID). Then in your script, use ActiveDocument.Variable("VarName").GetContent.String to pull out that value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2009 01:35:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-rows-and-deleting-rows-in-an-Excel-File/m-p/142096#M21652</guid>
      <dc:creator />
      <dc:date>2009-07-09T01:35:27Z</dc:date>
    </item>
    <item>
      <title>Adding rows and deleting rows in an Excel File</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-rows-and-deleting-rows-in-an-Excel-File/m-p/142097#M21653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't seem to get the field selection. The field is "Order ID". So it has a space in the middle. In general it seems if you put the square brackets: [Order ID] it works, like in counting orders with the Count function. When I try to make this call though, it doesn't work. When debugging it just says: GetFieldSelections Empty. For the record I know for a fact that an Order ID is selected &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2009 02:10:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-rows-and-deleting-rows-in-an-Excel-File/m-p/142097#M21653</guid>
      <dc:creator />
      <dc:date>2009-07-09T02:10:35Z</dc:date>
    </item>
    <item>
      <title>Adding rows and deleting rows in an Excel File</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-rows-and-deleting-rows-in-an-Excel-File/m-p/142098#M21654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this case, you want double-quotes.&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;=GetFieldSelections("Order ID")&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;I make it a habit to not use spaces in my field names. In many different data programs, you have to work a little harder to accommodate for those spaces.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2009 02:39:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-rows-and-deleting-rows-in-an-Excel-File/m-p/142098#M21654</guid>
      <dc:creator />
      <dc:date>2009-07-09T02:39:42Z</dc:date>
    </item>
    <item>
      <title>Adding rows and deleting rows in an Excel File</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-rows-and-deleting-rows-in-an-Excel-File/m-p/142099#M21655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just realized the actual error i'm getting is: Type Mismatch: 'GetFieldSelections'&lt;/P&gt;&lt;P&gt;this is my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Dim id&lt;BR /&gt; id = GetFieldSelections("Order ID")&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;not really sure what part of the code is causing this mismatch, if its the assignment of this value to id or using "Order ID" as an argument&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2009 02:52:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-rows-and-deleting-rows-in-an-Excel-File/m-p/142099#M21655</guid>
      <dc:creator />
      <dc:date>2009-07-09T02:52:31Z</dc:date>
    </item>
  </channel>
</rss>

