<?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 Random selection in listbox in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Random-selection-in-listbox/m-p/217334#M503326</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Wizardo&lt;/P&gt;&lt;P&gt;Ah - you are right, making the macro in the script is of course the most simple solution &lt;IMG alt="Embarrassed" src="http://community.qlik.com/emoticons/emotion-10.gif" /&gt;&lt;/P&gt;&lt;P&gt;I guess it will restrict me to using numbers in the listbox then - which is okay.&lt;/P&gt;&lt;P&gt;I am not an expert in macros - so I am affraid I can not figure out your macro - at least it doesn't work for me when pasting into the edit module. The script generates and error: "Object required(...)&lt;/P&gt;&lt;P&gt;Thanks for your effort&lt;/P&gt;&lt;P&gt;Lars&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Apr 2010 09:11:16 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-04-19T09:11:16Z</dc:date>
    <item>
      <title>Random selection in listbox</title>
      <link>https://community.qlik.com/t5/QlikView/Random-selection-in-listbox/m-p/217329#M503321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Qliks!&lt;/P&gt;&lt;P&gt;I need to make a button that will select a single random value from a listbox. I am thinking that to make it easier the listbox could contain a linear range of numbers from 0 -&amp;gt; n.&lt;/P&gt;&lt;P&gt;I tried to write a macro like&lt;/P&gt;&lt;P&gt;Sub test&lt;/P&gt;&lt;P&gt;x=4&lt;/P&gt;&lt;P&gt;ActiveDocument.Fields("F1").Select x&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;Now - I just need to figure out how to generate the variable x based on the total number of rows from the list box since the row number will grow in the model.&lt;/P&gt;&lt;P&gt;Your help is highly appreciated&lt;/P&gt;&lt;P&gt;Lars Madsen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Apr 2010 23:17:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Random-selection-in-listbox/m-p/217329#M503321</guid>
      <dc:creator />
      <dc:date>2010-04-16T23:17:44Z</dc:date>
    </item>
    <item>
      <title>Random selection in listbox</title>
      <link>https://community.qlik.com/t5/QlikView/Random-selection-in-listbox/m-p/217330#M503322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;you can modify your macro a little to be like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub test&lt;/P&gt;&lt;P&gt;mySelect= "&amp;gt;=0" &amp;amp; "&amp;lt;=n"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ActiveDocument.Fields("F1").Select mySelect&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;i hope this works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Apr 2010 04:26:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Random-selection-in-listbox/m-p/217330#M503322</guid>
      <dc:creator />
      <dc:date>2010-04-17T04:26:45Z</dc:date>
    </item>
    <item>
      <title>Random selection in listbox</title>
      <link>https://community.qlik.com/t5/QlikView/Random-selection-in-listbox/m-p/217331#M503323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lars,&lt;/P&gt;&lt;P&gt;you could use this macro in the PostReload of the document.&lt;/P&gt;&lt;P&gt;or turn it into a function and call it from your macro&lt;/P&gt;&lt;P&gt;or just use the lines from it inside your macro&lt;/P&gt;&lt;P&gt;this will give you a variable with the max number to pass to the rand() function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub Get)LB_numofrows&lt;/P&gt;&lt;P&gt;set LB= ActiveDocument.GetSheetObject( "LB01" )&lt;BR /&gt;vNumOfRows= ActiveDocument.GetVariable("vNumOfRows").getcontent.string&lt;BR /&gt;h = table.GetRowCount&lt;/P&gt;&lt;P&gt;vNumOfRows.setContent h, true&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;another way might be to (in the script) count() the number of the distinct values in the field that's gonna be used in the ListBox. an plant it into a variable&lt;/P&gt;&lt;P&gt;hope it helps&lt;/P&gt;&lt;P&gt;Mansyno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Apr 2010 09:08:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Random-selection-in-listbox/m-p/217331#M503323</guid>
      <dc:creator>wizardo</dc:creator>
      <dc:date>2010-04-17T09:08:36Z</dc:date>
    </item>
    <item>
      <title>Random selection in listbox</title>
      <link>https://community.qlik.com/t5/QlikView/Random-selection-in-listbox/m-p/217332#M503324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about:&lt;/P&gt;&lt;P&gt;Sub SelectRandom&lt;BR /&gt; val = ActiveDocument.Evaluate("FieldValue('F1', ceil(" &amp;amp; Rnd() _&lt;BR /&gt; &amp;amp; " * FieldValueCount('F1')))")&lt;BR /&gt; ActiveDocument.Fields("F1").Select val&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;This will work for any type of values in F1. You don't have to restrict the list to numbers.&lt;/P&gt;&lt;P&gt;You may think you could use the Qlikview rand() function in the Evaluate, but my experience is that the numbers aren't very random that way. Seems to get stuck on a two number loop after a while. The VBS Rnd() function works better.&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Apr 2010 19:21:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Random-selection-in-listbox/m-p/217332#M503324</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2010-04-17T19:21:14Z</dc:date>
    </item>
    <item>
      <title>Random selection in listbox</title>
      <link>https://community.qlik.com/t5/QlikView/Random-selection-in-listbox/m-p/217333#M503325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi tauqueer&lt;/P&gt;&lt;P&gt;Thanks for you reply. I don't understand your solution. Am I supposed to replace "n" with the actual number of lines in my listbox?&lt;/P&gt;&lt;P&gt;In that case&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;How will it work dynamically?&lt;/LI&gt;&lt;LI&gt;Will this not only select all the line in the list box and not just one unique selection?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lars&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Apr 2010 08:38:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Random-selection-in-listbox/m-p/217333#M503325</guid>
      <dc:creator />
      <dc:date>2010-04-19T08:38:20Z</dc:date>
    </item>
    <item>
      <title>Random selection in listbox</title>
      <link>https://community.qlik.com/t5/QlikView/Random-selection-in-listbox/m-p/217334#M503326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Wizardo&lt;/P&gt;&lt;P&gt;Ah - you are right, making the macro in the script is of course the most simple solution &lt;IMG alt="Embarrassed" src="http://community.qlik.com/emoticons/emotion-10.gif" /&gt;&lt;/P&gt;&lt;P&gt;I guess it will restrict me to using numbers in the listbox then - which is okay.&lt;/P&gt;&lt;P&gt;I am not an expert in macros - so I am affraid I can not figure out your macro - at least it doesn't work for me when pasting into the edit module. The script generates and error: "Object required(...)&lt;/P&gt;&lt;P&gt;Thanks for your effort&lt;/P&gt;&lt;P&gt;Lars&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Apr 2010 09:11:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Random-selection-in-listbox/m-p/217334#M503326</guid>
      <dc:creator />
      <dc:date>2010-04-19T09:11:16Z</dc:date>
    </item>
    <item>
      <title>Random selection in listbox</title>
      <link>https://community.qlik.com/t5/QlikView/Random-selection-in-listbox/m-p/217335#M503327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob&lt;/P&gt;&lt;P&gt;Your solution is as always simple and beautiful - I can almost understand what you have suggested &lt;IMG alt="Surprise" src="http://community.qlik.com/emoticons/emotion-3.gif" /&gt;&lt;/P&gt;&lt;P&gt;Anyway - I need some more help. I just pasted your solution into the Edit Module to see what happens - unfortunately I don't get any value of the expression (I tried to sent it to a MsgBox)&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The Ceil function doesn't seem to be recognized in the Edit Module ?&lt;/LI&gt;&lt;LI&gt;What will the round() give me compared to Ceil?&lt;/LI&gt;&lt;LI&gt;The Rnd() seems to generate the same string of values - the first value will always be 0.7055475. That is - if I change something in the edit module that rnd() - wil somehow be "reset" and then follow the same list of random values ... is that intented?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I might be way off in intepreting your macro - bear in mind that VBscript is a mystery to me so pls. guide me in your solution.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Lars&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Apr 2010 09:21:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Random-selection-in-listbox/m-p/217335#M503327</guid>
      <dc:creator />
      <dc:date>2010-04-19T09:21:03Z</dc:date>
    </item>
    <item>
      <title>Random selection in listbox</title>
      <link>https://community.qlik.com/t5/QlikView/Random-selection-in-listbox/m-p/217336#M503328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi lars,&lt;/P&gt;&lt;P&gt;rob's solution is simply awesome. its working fine for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the ceil function is recognizable in edit module and as far as round() is concerned,&lt;/P&gt;&lt;P&gt;in the expression&lt;/P&gt;&lt;P&gt;val = ActiveDocument.Evaluate("FieldValue('F1', ceil(" &amp;amp; Rnd() _&lt;/P&gt;&lt;P&gt;&amp;amp; " * FieldValueCount('F1')))")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first Rnd() generates a random number between 0 and 1 which when multiplied by total no of fieldvalues( FieldValueCount('F1'))&lt;/P&gt;&lt;P&gt;in field F1 gives a value less than or equal to total no of fieldvalues in F1 which on ceiling gives a unique integer value less than or equal to total no of fieldvalues in F1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you use round()instead of ceil, let us suppose you have 10 values in F1.&lt;/P&gt;&lt;P&gt;and Rnd() generates a random number say 0.67 , so 0.67*10 gives 6.7 which on rounding will give 7 so u will get the 7th value in F1&lt;/P&gt;&lt;P&gt;but suppose Rnd() generates a random number say 0.63 , so 0.63*10 gives 6.3 which on rounding will give 6 so u will get the 6th value in F1.&lt;/P&gt;&lt;P&gt;but if u use ceil function , in both the above case ceil() will give u 7 only ie 7th value in F1.&lt;/P&gt;&lt;P&gt;there will be no ambiguity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Apr 2010 10:57:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Random-selection-in-listbox/m-p/217336#M503328</guid>
      <dc:creator />
      <dc:date>2010-04-19T10:57:49Z</dc:date>
    </item>
    <item>
      <title>Random selection in listbox</title>
      <link>https://community.qlik.com/t5/QlikView/Random-selection-in-listbox/m-p/217337#M503329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for that fine explenation tauqueer!&lt;/P&gt;&lt;P&gt;Anyway - I am doing something completely wrong. In the enclosed example I entered Rob's Macro into the Edit Module - when I press my button nothing happens.&lt;/P&gt;&lt;P&gt;What am I doing wrong here?&lt;/P&gt;&lt;P&gt;Lars&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Apr 2010 11:55:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Random-selection-in-listbox/m-p/217337#M503329</guid>
      <dc:creator />
      <dc:date>2010-04-19T11:55:43Z</dc:date>
    </item>
    <item>
      <title>Random selection in listbox</title>
      <link>https://community.qlik.com/t5/QlikView/Random-selection-in-listbox/m-p/217338#M503330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi lars,&lt;/P&gt;&lt;P&gt;i saw your application and everything is working fine.&lt;/P&gt;&lt;P&gt;i am surprised to hear that its not working on your system.&lt;/P&gt;&lt;P&gt;can you tell me which version of qlikview you are using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Apr 2010 12:16:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Random-selection-in-listbox/m-p/217338#M503330</guid>
      <dc:creator />
      <dc:date>2010-04-19T12:16:37Z</dc:date>
    </item>
    <item>
      <title>Random selection in listbox</title>
      <link>https://community.qlik.com/t5/QlikView/Random-selection-in-listbox/m-p/217339#M503331</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 using 9.00.7440.8 SR3&lt;/P&gt;&lt;P&gt;Lars&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Apr 2010 12:45:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Random-selection-in-listbox/m-p/217339#M503331</guid>
      <dc:creator />
      <dc:date>2010-04-19T12:45:42Z</dc:date>
    </item>
    <item>
      <title>Random selection in listbox</title>
      <link>https://community.qlik.com/t5/QlikView/Random-selection-in-listbox/m-p/217340#M503332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi lars,&lt;/P&gt;&lt;P&gt;probably check with your document properties security settings&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Apr 2010 12:57:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Random-selection-in-listbox/m-p/217340#M503332</guid>
      <dc:creator />
      <dc:date>2010-04-19T12:57:56Z</dc:date>
    </item>
    <item>
      <title>Random selection in listbox</title>
      <link>https://community.qlik.com/t5/QlikView/Random-selection-in-listbox/m-p/217341#M503333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi lars,&lt;/P&gt;&lt;P&gt;i think you have your "current local security" set as " dont run at all " in the edit module for macros.&lt;/P&gt;&lt;P&gt;pls set it to as only safe mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i hope that it should work now.pls check the attached application&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Apr 2010 13:22:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Random-selection-in-listbox/m-p/217341#M503333</guid>
      <dc:creator />
      <dc:date>2010-04-19T13:22:31Z</dc:date>
    </item>
    <item>
      <title>Random selection in listbox</title>
      <link>https://community.qlik.com/t5/QlikView/Random-selection-in-listbox/m-p/217342#M503334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Based on the feedback I trust that Rob's solution does the trick!&lt;/P&gt;&lt;P&gt;Unfortunately it just doesn't work on my installation. I even tried another installation on QlikView with the same negative result. My security is set as proposed, but when I hid the button the selection is cleared completely from the listbox.&lt;/P&gt;&lt;P&gt;I can see though that the "back/forward" changes as if selections are in fact made with the macro - but no effect in the list box [:'(]&lt;/P&gt;&lt;P&gt;Thanks anyway&lt;/P&gt;&lt;P&gt;Lars&lt;IMG alt="" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Apr 2010 19:28:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Random-selection-in-listbox/m-p/217342#M503334</guid>
      <dc:creator />
      <dc:date>2010-04-19T19:28:14Z</dc:date>
    </item>
    <item>
      <title>Random selection in listbox</title>
      <link>https://community.qlik.com/t5/QlikView/Random-selection-in-listbox/m-p/217343#M503335</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 did'nt get Rob's function to work first... But then I realized that the number returned from the Rnd() funktion contained a , and QV expected a . inorder to evaluate the function...&lt;BR /&gt;So I could be due to system settings...&lt;/P&gt;&lt;P&gt;I did a simple replace and got Rob's script to work...&lt;/P&gt;&lt;P&gt;BR&lt;BR /&gt;Hans&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Aug 2010 22:08:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Random-selection-in-listbox/m-p/217343#M503335</guid>
      <dc:creator />
      <dc:date>2010-08-15T22:08:40Z</dc:date>
    </item>
    <item>
      <title>Random selection in listbox</title>
      <link>https://community.qlik.com/t5/QlikView/Random-selection-in-listbox/m-p/217344#M503336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;Does anyone have an idea how i can use this code and randomly select for example 100 random articles?&lt;/P&gt;&lt;P&gt;BR Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Oct 2010 13:37:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Random-selection-in-listbox/m-p/217344#M503336</guid>
      <dc:creator />
      <dc:date>2010-10-13T13:37:43Z</dc:date>
    </item>
    <item>
      <title>Random selection in listbox</title>
      <link>https://community.qlik.com/t5/QlikView/Random-selection-in-listbox/m-p/217345#M503337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could wrap it in a While loop that runs until you get the count you want. Be careful &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;Sub SelectRandom&lt;BR /&gt; ActiveDocument.Fields("F1").Clear&lt;BR /&gt; While ActiveDocument.Evaluate("getSelectedCount(F1)") &amp;lt; 100&lt;BR /&gt; val = ActiveDocument.Evaluate("FieldValue('F1', ceil(" &amp;amp; Rnd() _&lt;BR /&gt; &amp;amp; " * FieldValueCount('F1')))")&lt;BR /&gt; ActiveDocument.Fields("F1").ToggleSelect val&lt;BR /&gt; Wend&lt;BR /&gt;End Sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Oct 2010 19:52:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Random-selection-in-listbox/m-p/217345#M503337</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2010-10-18T19:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: Random selection in listbox</title>
      <link>https://community.qlik.com/t5/QlikView/Random-selection-in-listbox/m-p/217346#M503338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lars, &lt;/P&gt;&lt;P&gt;This is my offer, no depending on version&lt;/P&gt;&lt;P&gt;Pls to see image attached&lt;/P&gt;&lt;P&gt;Good luck, Luis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Very thx Rob.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2011 16:35:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Random-selection-in-listbox/m-p/217346#M503338</guid>
      <dc:creator>llauses243</dc:creator>
      <dc:date>2011-11-17T16:35:59Z</dc:date>
    </item>
  </channel>
</rss>

