Sub T()
Dim commentaire As Comment
With Range("a" & ActiveCell.Row).Resize(, 6)
For i = 1 To .Cells.Count
UserForm1.Controls("TextBox" & i).Text = .Cells(i)
If i >= 4 Then UserForm1.Controls("TextBox" & i).BackColor = .Cells(i).DisplayFormat.Interior.Color
Next
End With
UserForm1.Show
End Sub
Sub T()
Dim Lig&, commentaire As Comment
Lig = ActiveCell.Row
UserForm1.TextBox1.Text = ActiveCell.Value
UserForm1.TextBox2.Text = Range("B" & Lig).Value
UserForm1.TextBox3.Text = Range("C" & Lig).Value
With Range("D" & Lig).Resize(, 3)
For i = 1 To 3
UserForm1.Controls("TextBox" & i + 3).BackColor = .Cells(i).DisplayFormat.Interior.Color
UserForm1.Controls("TextBox" & i + 3).Value = Cells(i)
Next
End With
UserForm1.Show
End Sub
Sub T()
Dim commentaire As Comment
With Range("a" & ActiveCell.Row).Resize(, 6)
For i = 1 To .Cells.Count
UserForm1.Controls("TextBox" & i).Text = .Cells(i)
If i >= 4 Then UserForm1.Controls("TextBox" & i).BackColor = .Cells(i).DisplayFormat.Interior.Color
Next
End With
UserForm1.Show
End Sub