Hi
I have a worksheet "Orders". A macro adds a new row and increments an "OrderNO" by 1. This works fine
I have to allow the user to re-use a previous number but want to warn them it is a duplicate. I have tried using a sheet change action. If the user overtypes the automatically created number it checks for duplicates and if found a message box appears advising number already used retry or cancel.
It works fine. If retry cell is emptied and selected. If cancel then repeat number stays.
Problem is as I move to the next column it repeats the check and I get the message again. It does this for all cells in that row.
I only want it to check if A4 is reeapted in A5:A10000.
How do I stop it working from all cell changes?
Here's my code (I hope I have posted it correctly). Any help much appreciated
The old fogey
Bookmarks