A user form pops up and is populated with all of the Vendors from the data in alphabetical order.
The user then selects which Vendor(s) they would like to have their own worksheet in the workbook.
The selected Vendor(s) then populate my "Vendor2" worksheet in alphabetical order.
After it pulls the rows of the Vendor(s) into their own tabs and does some formatting, it then searches the "DM2" and "SC2" (also in alphabetical order) tabs for the selected Vendor(s) and deletes them from those sheets.
However, it only deletes half of them. Say there are 4 occurances of the vendor in the "DM2" sheet, it will delete two of them. If you run it again, (now there are 2), it will delete one of them.
If I keep running it, eventually they will be gone, but I do not want to have to run it over and over.
I have used this method before and it has worked fine, however, I do not understand why it is doing this.
Below is my code snippet. Any help would be greatly appreciated.
Bookmarks