Hello s2jrchoi,
You could shorten the loop code to this...
Another method would be to use the Like operator...![]()
For x = 2 To lRow If InStr(1, rolesSheet.Cells(x, 1), eName) <> 0 Then Exit For Next x
![]()
For x = 2 To lRow ' Compare both in lower case to elimate case sensitivity If LCase(rolesSheet.Cells(x, 1)) Like LCase("*" & eName & "*") Then Exit For Next x
Bookmarks