Hi all,
I fill a multicolumn Listbox on a Userform with data from a sheet with code;
Works perfectly.
Now I wish to loop through the listbox and when items are empty (in 1 of the columns) I need to execute some code, let's say a msgbox.
How can I loop trough the Listbox looking for empty fields in columns 2 to 7?
Mathijs.
I fill a multicolumn Listbox on a Userform with data from a sheet with code;
Code:
With ListBox1
.RowSource = "A4:G128"
.ColumnHeads = True
.ColumnCount = 7 'Determine number of columns
.ColumnWidths = "80;180;180;80;40;60;70" 'Set column widths
'.List = a 'Insert the range of data supplied
End With
Now I wish to loop through the listbox and when items are empty (in 1 of the columns) I need to execute some code, let's say a msgbox.
How can I loop trough the Listbox looking for empty fields in columns 2 to 7?
Mathijs.