Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need VBA help to randomly assign order to items

Status
Not open for further replies.

wcassell

Technical User
Jul 24, 2003
4
US
I'm working on a simulation program and I need help with some code to assign an order for each of the items. For example, if I have 6 items in my list. I want the code to choose which one gets selected 1st, 2nd, 3rd . . .

My Item - Order(selected by code)
Item1 - 2nd
Item2 - 5th
Item3 - 4th
Item4 - 6th
Item5 - 1st
Item6 - 3rd

Thanks
 
Do a search for "random" or take a look at my "RandomRank" function in thread68-611983
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top