Hey come on, don't give up. You almost have it... Really. Instead of putting the number of the html table cells into cells of StringGrid, put them into a 2d array. Add the titles of the HTML table to the bank combobox. Then later, when the user selects an item from the bank combo, copy the values of the selected bank into the labels.