Re: fixing select case code issue
Sorry if this wasn't clear. Don't want to waste everyone's time.
I will try to explain:
For each SO, I want it to look in the database and read the first line item.
If the first line item is a category 1, then, I want to put category 1 on the Unique SO sheet as its classification, and move to the next SO.
If the first line item is a category 3, then I want to see if there are additional line items in the SO on the SO database....
If yes, then I want to see if that line item is a category 1 or 2, if yes, then call it that on the Unique SO sheet as its classification, and move to the next SO.
If no, then call it category 3, and move to the next SO...
Until all SO's are classified.
Ultimately, on the Unique SO list, each SO will be categorized in one category only.
so, for 93666, the first time it would be read, it would show as category 3, but, since it has multiple lines, we would read it again, see it is in category 2, and classifiy it on the Unique SO list accordingly.
Right now, my code is reading everything as a 1, as you can see in the test sheet, so my select case is not working, and I am not sure if the way I have written the code will allow me to go through the multiple iterations the way I am describing.
Thanks!