I am trying to calculate the median, and mode using a listbox that contains salary values. The are referenced to seperate Subs on the form. One calculates the mean of the listbox (lstsalaries) and the second calculates the mode(of lstSalaries) and the last one calculates the smallest salary in the list. I know that a sorted list will help but, I have absolutely no idea what the syntax of the code will be. I am new to VB and help would be greatly appreciated.