hi, while writing the code for you I assumed the orders column will not have empty cells, if it is the code should be slightly changed to take that into account. If you need that please post that in the thread. cheers