Ilino
XLDnaute Barbatruc
Forum Bonsoir
Je vous sollicite à m’aider pour adapter ce code à mon souci suivant
Je souhaite afficher un format personnalisé dans la cellule T10 (fusionnée) ‘Numéro. Initiales ( de la cellule E19) .ILINO .2014
EXEMPLE :
12.AB.ILINO.2014
Ci-dessous un code déjà réalisé « merci bénévole » mais pour un Textbox
GRAZIE par Avance
Je vous sollicite à m’aider pour adapter ce code à mon souci suivant
Je souhaite afficher un format personnalisé dans la cellule T10 (fusionnée) ‘Numéro. Initiales ( de la cellule E19) .ILINO .2014
EXEMPLE :
12.AB.ILINO.2014
Ci-dessous un code déjà réalisé « merci bénévole » mais pour un Textbox
Code:
Private Sub TextBox9_Exit(ByVal Cancel As MSForms.ReturnBoolean)
If Left(TextBox3, 2) = "M " Then
TextBox9.Value = TextBox9.Value & "." & Mid(TextBox3, 3, 1) & Mid(Right(TextBox3, 2), 1, 1) & "." & "ILINO" & "." & Year(Now())
ElseIf Left(TextBox3, 2) = "Mm" Then
TextBox9.Value = TextBox9.Value & "." & Mid(TextBox3, 5, 1) & Mid(Right(TextBox3, 2), 1, 1) & "." & "ILINO" & "." & Year(Now())
ElseIf Left(TextBox3, 2) = "Ml" Then
TextBox9.Value = TextBox9.Value & "." & Mid(TextBox3, 6, 1) & Mid(Right(TextBox3, 2), 1, 1) & "." & "ILINO" & "." & Year(Now())
End If
End Sub
Pièces jointes
Dernière édition: