Dan Wilson
Well-known Member
- Joined
- Feb 5, 2006
- Messages
- 546
- Office Version
- 365
- Platform
- Windows
Good day. Grab a cold one, this will take a while to explain. I have a Worksheet titled “Random Picks” with a Macro that creates 40 individual random numbers and guarantees that none of the 40 numbers are duplicates. In another Workbook titled “50-69” there is a worksheet that lists 3500 songs that are in my music folder. That same worksheet contains a Column that tracks the last time each song was used in my weekly podcast. This is done so that no songs are repeated in a 6-week time period. On the “Random Picks” Worksheet there is also a list of the 40 random numbers in Cells B8 thru B47. Cell N8 is changed each week to contain the most recent Podcast Number. At this point each of the values found in Cells B8 thru B47 are examined by comparing the value found with the value found in N8 with a value of 6 subtracted from the most recent Podcast. For example, the value in N8 may be 90, thus the number being compared to the values in B8 thru B47 would be 84. If the value found in B8 thru B47 is less than the comparison number, the Cell in K8 thru K47 would be left blank. If the value found is 84 or higher, the word “bad” is placed in the Cell in Column K for that comparison. Cell N11 then counts the word “bad” found in Cells K8 thru K47. On the “Random Picks” worksheet there is a Macro that causes the random numbers to be generated in the first place. I would like to alter that Macro so that when it executes the random number generation continuously until Cell N11 contains a zero. I have tried to make a test Macro, but I’m not having much luck. Any help will be appreciated.