I'm populating a listbox as follows:
Sheet 1 has a HEADING ROW
if sheet 1 JUST has the Heading Row, the listbox gets populated with the heading row - Should it just be empty ?
if sheet 1 has 1 row of data I get an error
if sheet 1 has 2 or more rows of data it works fine
how can I fix ?
Code:
With Sheet1
Me.lbxCustomers.List = .Range(.[B2], .Cells(Rows.Count, 2).End(xlUp)).value
end with
Sheet 1 has a HEADING ROW
if sheet 1 JUST has the Heading Row, the listbox gets populated with the heading row - Should it just be empty ?
if sheet 1 has 1 row of data I get an error
if sheet 1 has 2 or more rows of data it works fine
how can I fix ?