Premièrement, j'insère les données depuis mon userform, ci-après le code:
Private Sub CommandButton1_Click()
Dim a As Integer, b As Integer
a = ActiveCell.Row
b = ActiveCell.Column
For i = 0 To userform.List.ListCount - 1
If userform.List.Selected(i) = True Then
Cells(a + 1, b) = userform.List.List(i)
a = a + 1
End If
Next
'Range("a+1", Range("a+1").End(xlDown)).Select
'With Selection.Borders
' .LineStyle = xlContinuous
' .Weight = xlThin
' .ColorIndex = xlAutomatic
'End With
Unload useform
End Sub
Ensuite, je veux sélectionner les cellules renseignées pour les encadrer [code mis en commentaire et ne marchant pas]
Merci