Question:
Hi ive tried to create a code so the user from cant insert the same id in the table, so ive created an insert button that validates it before he actually inserts something , but for some reason it isnt working, please help me(im new to VBA):Heres my code:
Heres the Id the user insert which im trying to validate ID being I17 cell(sheet name being Form):

Ps: if u need more info let me know
And here is the field im trying to lookin if the value matchs(Data Sheet):

Answer:
Because I do not know exactly what you are trying to do, this is the simplest way to get you started.Data.Columns("A:A").Find(What:=Sheet1.Cells(17,9).Value)
and you dont have to loop a thing, I recommend doing a little reading/google searching on that approach before trying it that way.If you have better answer, please add a comment about this, thank you!