Hi
I have created a userform with a lot of textboxes and comboboxes.
The userform is used to populate a worksheet with information.
When the user clicks the "Save" button all data is saved in the next empty row.
Before data is saved I want to check if the value in textbox1 is already there - and have the rownumber in return.
Something like
can anyone please tell me the syntax.
Regards Annette
I have created a userform with a lot of textboxes and comboboxes.
The userform is used to populate a worksheet with information.
When the user clicks the "Save" button all data is saved in the next empty row.
Before data is saved I want to check if the value in textbox1 is already there - and have the rownumber in return.
Something like
Code:
dim lIsInRow as Long
If textbox1.value is already in column B then
msgBox ("The value is already in row " &lIsInRow)
can anyone please tell me the syntax.
Regards Annette