Private Sub CommandButton2_Click()
Dim Sh
If TextBox1.Value = "" Or TextBox2.Value = "" Or TextBox3.Value = "" Or TextBox4.Value = "" Or ComboBox1.Value = "" Then
MsgBox ("Veuillez remplir touts les champs")
Else
With Sheets("Page")
.Cells(22, 3) = TextBox1.Value
.Cells(23, 3) = TextBox2.Value
.Cells(30, 3) = ComboBox1.Value
.Cells(31, 3) = TextBox4.Value
End With
For Each Sh In Array("O11", "O13", "O21")
With Sheets(Sh)
.Cells(1, 2) = TextBox1.Value
.Cells(5, 2) = TextBox2.Value
.Cells(1, 5) = ComboBox1.Value
.Cells(3, 5) = TextBox4.Value
.Cells(3, 2) = TextBox3.Value
End With
Next
Unload UserForm1
End If
End Sub