Prevent Duplicate Entries in Excel Automatically with VBA Macro

Prevent Duplicate Entries in Excel Automatically with VBA Macro

Excel Destination

5 лет назад

42,900 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@alializadeh8195
@alializadeh8195 - 14.11.2022 04:19

Thank man

Ответить
@muhammadmunir4068
@muhammadmunir4068 - 31.08.2022 15:34

Respected sir your code is working well when I put duplicate data and press ENTER. But when i move to other cell through arrow keys it does not works.Secondly when we move to previous cell its row also deleted even it is happen to be unique value. Please advise how to fix this issue

Ответить
@ranjanbirla5554
@ranjanbirla5554 - 05.04.2021 14:58

This code has an issue if you move up in column four (04), It will show it is a duplicate record and delete it. You keep moving the cursor in the upper row and it will keep deleting records. Which should not be the case.

Ответить
@sallytong241
@sallytong241 - 27.02.2021 16:39

If it is possible the final action is not deleting the last row, but go to the number that has previously been entered. For example, if it is not ID number, it is fax number, I do not want to type duplicated fax number.

Ответить
@robertgryska3954
@robertgryska3954 - 26.10.2020 17:27

Hi I have problem with this line
lastrow = Worksheets("Sheet1").Cells(Rows.Count, 4).End(x1Up).Row - Runtime error 1004 application defined or object defined error. Thx

Ответить
@sureshsomaiya3820
@sureshsomaiya3820 - 30.07.2020 11:18

Thanks bhai

Ответить
@vibhuvarshney1579
@vibhuvarshney1579 - 14.04.2020 11:57

could you help if I need to save data in sheet 2 from sheet 1 and avoid duplicate entries in sheet 2, where I need to compile my data

Ответить
@Quoteminds5
@Quoteminds5 - 13.04.2020 19:30

Hello ,
let say we have a id 12 and u right again in the below 12 , then it shows duplicate and delete the cell which is great ,
but when u enter again in blank cell the above data gets deleted also
please advise

Ответить
@user-nt5ji6bg1g
@user-nt5ji6bg1g - 31.12.2019 13:36

Where to find the exercise file?

Ответить
@hazemali382
@hazemali382 - 23.11.2019 11:36

Great

Ответить
@markarvin7725
@markarvin7725 - 05.06.2019 20:03

📢 This is nice, but there's a problem. If you mistakenly click on an entry that you don't want deleted, it automatically deletes that entry. Is there a fix out there for this? 😃

Ответить
@mukundpotdar9849
@mukundpotdar9849 - 10.04.2019 14:34

Hi


In case if user try to copy and paste the data from Row 1 of Customer Id to Row 16 of Customer Id.
Can we prevent the duplicate data.

Ответить