Attached herewith is the workbook with the code that i tried out (given above).
The data needs to be sorted automatically (as in the output sheet) with the filter still active as i want to pick random rows of data for which the filtered output needs to be in continuous range passed to the function developed by Pattrick Mathews @ VBAX (below). The filtering and shuffling of rows will be done for all the user names in the worksheet (for whom samples have to be chosen) and will be done with a for loop.
The function takes a Range variable which should to be continuous to choose a set of rows randomly. Can someone help me how to go about selecting a continous range of data from the Extract data sheet?
Sarang
Bookmarks