Good morning everyone,
I have a worksheet that processes sales. If you click the Product Code cell in a new line, a userform pops up, containing a ListBox of all the products in the warehouse, then you double click one of them and it gets added to the invoice.
My problem comes because this ListBox will always show every single row in the warehouse sheet no matter what I do with its RowSource, and I want to only show products with a remaining quantity >0 and some other filter criteria added in there too.
This is the current code for my form:
This returns every single row, no matter if autofiltered or not. I've tried SpecialCells(xlCellTypeVisible) but I must have used it wrong because all I get is a blank listbox. The plan is to add ws1.AutoFilter.ApplyFilter before defining the RowSource to always get up-to-date data, would it work?
Thanks in advance!
Bookmarks