Does anyone know how to validate email address in excel vba under userform for textbox1?
only got the pattern "^[a-z0-9_.-]+@[a-z0-9.-]{2,}\.[a-z]{2,4}$" but not too sure how to apply it into a function.
so far only have:
        If .textbox1.Value = "" Then
            MsgBox "Please enter email."
            Validation = False
            Exit Function
            
        End If
for validating if theres an empty textbox. if anyone has any solutions it would be highly appreciated
 
     
    