Fallenwing
Programmer
I have created a project with a custom form. The form contains list boxes that get their list items from cells in Excel spreadsheets. In the properties window (in the Visual Basic Editor) for this form, under the RowSource heading I list the cells that I want to appear in the list box. Entered now is Sheet1!A11:B220. The problem is that the excel data keeps growing. I find I am continually updating the cell range to make it keep up. I don't really want to add 1000 blank rows into the list box either. Is there a way I can enter code that will search for the number of cells inside the Property Window of the Visual Basic Editor?