Hi Guys,
Ive hit a stumbling block with this, hoping someone can help please?
Im looking to use some VBA code in my userform to find data from multiple criteria.
Table
EmpID Date Reason
123. 24/10/19 Off
345. 10/10/19. AL
123. 25/10/19. AL
I have another userform to enter the data into the table.
My problem is, supposing I need to edit/remove the entry,
Is it possible for another userform to be able to find the row based on all 3 criteria, so that this can be edited/removed please?
Im using this code on elsewhere, this works great but not sure how to extend this to 3 criteria.
Thanks guys
Ive hit a stumbling block with this, hoping someone can help please?
Im looking to use some VBA code in my userform to find data from multiple criteria.
Table
EmpID Date Reason
123. 24/10/19 Off
345. 10/10/19. AL
123. 25/10/19. AL
I have another userform to enter the data into the table.
My problem is, supposing I need to edit/remove the entry,
Is it possible for another userform to be able to find the row based on all 3 criteria, so that this can be edited/removed please?
Im using this code on elsewhere, this works great but not sure how to extend this to 3 criteria.
Code:
Dim Ran1 as Range
Dim strsrch as String
Dim TBrow as long
Strsrch = me.EmpID.Values
Set Ran1 = Sheets (Active). Range(A:A).Find(what:strsrch, Lookat:=xlWhole)
If Ran1 is nothing then
Msgbox message details here
Exit sub
End if
TBrow = Ran1.row
Thanks guys
Last edited: