Hello everybody
I want to know is it possible to prevent duplicate entries Data Validation list in a column by code .. in worksheet_Selectionchange
How to do that if poosible?
Hello everybody
I want to know is it possible to prevent duplicate entries Data Validation list in a column by code .. in worksheet_Selectionchange
How to do that if poosible?
Hi,
Perhaps
Personally I wouldn't use the sheet selection change event since it will fire every time you change anything on the sheet.![]()
Please Login or Register to view this content.
I'm reading into your question that you want the validation list updated before you use it. The sheet Activate event would be preferable since it would only fire when you go to the sheet. Even that may be OTT if the list never changes during your session. Perhaps the workbook close event might be preferable.
Richard Buttrey
RIP - d. 06/10/2022
If any of the responses have helped then please consider rating them by clicking the small star iconbelow the post.
Thanks Mr Richard
I think your code remove duplicates .. My question about preventing the user from entering duplicate value in the VD Lists?
There is a solution that I get here by formulas but I want it by vba
Mr. Richard I tried your code it is great
But there is a problem a bout the cells that have VD and empty are removed I just need to remove the duplicate values not to remove VD prepared before
I have found the solution in my original thread in page 2 but I didn't notice that
Thanks for offering help . I'm very grateful for your great help![]()
Please Login or Register to view this content.
Can you help me with that thread
http://www.excelforum.com/excel-gene...dv-list-2.html
Welcome to the Forum, unfortunately:
This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.
Thread Closed.
1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
2. If your question is resolved, mark it SOLVED using the thread tools
3. Click on the star if you think someone helped you
Regards
Ford
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks