Re: Error handling for ListBox1.ColumnCount = UBound(vData, 2)
First and foremost, I want to say Thank You for all your help and attention. However, I think I need to restate my ultimate goal here that has seemed to have been lost in the type and code. This code is going to be used on a workbook that is EXTREMELY larger than this test book with a lot more sheets and data. I like the way the above code lists the data in the list box and It seems to work perfectly if I'm using it for only look up of any data already existing in the sheet. The only thing that wasn't working is if I tried to enter data that wasn't in the list. It crashed the userform.
Maybe if I try to explain what it is that I'm building, that may help.
This is going to be an intake program for my business, I own and operate a computer repair shop. (Ironic huh??) A summary of what I need this program to do is; collect personal data and transfer it to a sheet, (Name, Address, Phone, etc), collect all data about the incoming unit and transfer it to a sheet, (Brand, model, type, serial number, amt of ram, HDD size, OS and so on) create and Keep track of work orders, invoices and estimates. They have to be linked so to speak.... 1 person can have multiple units, 1 Unit can have multiple invoices and workorders but 1 unit can only have one owner so the lookup has to be centered on the customerID (the combobox) the primary key is the CustomerID on everysheet and everything is linked to it. Invoices, work orders, estimates. As of right now, there will be at least 3 userforms that will be used for different entry/lookup. The forms (WO, Invoices, estimates, etc.) will be created, filled from the many sheets of data and printed all from within the workbook. The reason for the list box is to be able to see each different unit and its data IF there are more than one. If the unit has never been in my shop, it needs to be added along with the owners info, the work order for the work, the invoice for work and the parts used, and so on.
For an unbelievably high cost, I could very easily purchase a program that would do all this and more but I'm trying to not only tailor this to what I need, but I'm also trying to learn at the same time. All that being said, I'm having trouble opening and understanding your code, I THINK, because of the code and procedure differences from the cross platform. However, I'm interested in how you are doing this on a mac because if anyone out there is trying to do something similar on a mac, it would work for them too.