Private Sub TextBox12_Change() ' Adresse mail
Dim S As String
With Me.TextBox12
S = .Value
If InStr(1, S, "@") > 0 And InStr(1, S, ".") > 0 Then
.ForeColor = RGB(0, 0, 255)
.Font.Underline = True
Else
.ForeColor = &H80000008
.Font.Underline = False
End If
End With
End Sub
Private Sub TextBox12_DblClick(ByVal Cancel As MSForms.ReturnBoolean) ' envoi mail
Dim S As String
S = Me.TextBox12.Value
If InStr(1, S, "@") > 0 And InStr(1, S, ".") > 0 Then
Envoi_Mail S, "", ""
End If
End Sub