I have a list of around 200 unique ticket numbers in an excel file.
Now I want to pick randomly 60 unique ticket numbers from the list by VBA Code
Please guide me how can i do that
I have a list of around 200 unique ticket numbers in an excel file.
Now I want to pick randomly 60 unique ticket numbers from the list by VBA Code
Please guide me how can i do that
You could number them from 1 to 200 and then Randomly pick 60 numbers between 1 and 200 ensuring, of course against duplicates by putting them in an array perhaps?
Something like this:
![]()
Please Login or Register to view this content.
Last edited by xladept; 12-15-2012 at 04:26 PM.
If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)
You can't do one thing. XLAdept
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin
Thanks Friend for your help :-)
You're welcome!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks