<?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: VBA - Current Selection Box in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/VBA-Current-Selection-Box/m-p/1773061#M454697</link>
    <description>&lt;P&gt;I tried, but the result is not the active sheets current selection box, but the first sheets selections. I suppose there is a reason why we have activesheet.getcurrentselection separately in the API guide?&lt;/P&gt;&lt;P&gt;Actually what I dont understand is why I get the object required error, as I have the same code as in the guide&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LaIs_0-1610200148370.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/46695i260BFDCF6305F1A6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LaIs_0-1610200148370.png" alt="LaIs_0-1610200148370.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 09 Jan 2021 14:46:11 GMT</pubDate>
    <dc:creator>LaIs</dc:creator>
    <dc:date>2021-01-09T14:46:11Z</dc:date>
    <item>
      <title>VBA - Current Selection Box</title>
      <link>https://community.qlik.com/t5/QlikView/VBA-Current-Selection-Box/m-p/1773045#M454694</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd need to have the selected field-selection pairs from the activesheets current selection box, however I could not manage to access to the CS boxes through ActiveDocument.Activesheet.GetCurrentSelections.&lt;/P&gt;&lt;P&gt;I tried the below in Qlik and got an "object required" error + in python with COM, the result was an empty tuple.&lt;/P&gt;&lt;P&gt;sub d&lt;/P&gt;&lt;P&gt;x = ActiveDocument.ActiveSheet.GetCurrentSelections // tried with set x too..&lt;BR /&gt;s = x.Selections&lt;BR /&gt;v = x.VarId&lt;BR /&gt;for i = lbound(s) to ubound(s)&lt;BR /&gt;msgbox v(i)&amp;amp;" = "&amp;amp;s(i)&lt;BR /&gt;next&lt;BR /&gt;end sub&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated,&lt;/P&gt;&lt;P&gt;thx,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Jan 2021 10:49:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VBA-Current-Selection-Box/m-p/1773045#M454694</guid>
      <dc:creator>LaIs</dc:creator>
      <dc:date>2021-01-09T10:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: VBA - Current Selection Box</title>
      <link>https://community.qlik.com/t5/QlikView/VBA-Current-Selection-Box/m-p/1773050#M454696</link>
      <description>&lt;P&gt;try this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sub d
x = ActiveDocument.GetCurrentSelections 
s = x.Selections
v = x.VarId
for i = lbound(s) to ubound(s)
msgbox v(i)&amp;amp;" = "&amp;amp;s(i)
next
end sub&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Jan 2021 11:43:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VBA-Current-Selection-Box/m-p/1773050#M454696</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2021-01-09T11:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: VBA - Current Selection Box</title>
      <link>https://community.qlik.com/t5/QlikView/VBA-Current-Selection-Box/m-p/1773061#M454697</link>
      <description>&lt;P&gt;I tried, but the result is not the active sheets current selection box, but the first sheets selections. I suppose there is a reason why we have activesheet.getcurrentselection separately in the API guide?&lt;/P&gt;&lt;P&gt;Actually what I dont understand is why I get the object required error, as I have the same code as in the guide&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LaIs_0-1610200148370.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/46695i260BFDCF6305F1A6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LaIs_0-1610200148370.png" alt="LaIs_0-1610200148370.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Jan 2021 14:46:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VBA-Current-Selection-Box/m-p/1773061#M454697</guid>
      <dc:creator>LaIs</dc:creator>
      <dc:date>2021-01-09T14:46:11Z</dc:date>
    </item>
  </channel>
</rss>

