Bonjour A tous !!! j'ai tester un code ce matin ya un probleme :
Le probleme est que si les Text Box 16 a 26 sont bien remplie bah le macro ne continue pas la procedure il se passe rien comment expliquer que si tous est remplis bah continue quoi ..... lol
Code:
Private Sub CommandButton1_Click()
'si TEXT BOX 16 a 26 VIDE = message box
Dim i As Byte
For i = 16 To 26
If Me.Controls("TextBox" & i) = "" Then MsgBox "IL MANQUE UNE COORDONEE DE L'ENTREPRISE" & vbNewLine & "SI VIDE METTRE UN TIRRET"
Next i
Exit Sub
'MET LES VALEURS DANS LA LIGNE
[S2] = TextBox27.Value 'DATE
[W4] = TextBox15.Value 'DIFFUSIONS
[B2] = TextBox16.Value 'SOCIETE
End Sub