TextBox.Text = Left$(TextBox.Text, TextBox.SelStart) & ListBox.Value & Mid$(TextBox.Text, TextBox.SelStart + TextBox.SelLength + 1)
Private Sub CommandButton1_Click()
'activer la reference Microsoft Forms 2.0 Object Library
Dim t$, o As New DataObject
If ListBox1.ListIndex > -1 Then t = ListBox1 Else t = ""
o.SetText t
o.PutInClipboard 'dans le presse-papiers
End Sub
Private Sub ListBox1_Change()
If ListBox1.ListIndex = -1 Then Exit Sub
ListBox2.ListIndex = -1: ListBox3.ListIndex = -1: ListBox4.ListIndex = -1
Dim o As New DataObject
o.SetText ListBox1
o.PutInClipboard 'dans le presse-papiers
End Sub