Bonjour,
je souhaiterai selectionner une plage variable.
La plage va toujours de B4 jusqu'a I (dernière ligne non vide) . Voilà ce que j'ai trouvé mais ça ne marche pas. Est ce que quelqu'un pourrait m'aide ? :
Private Sub CommandButton1_Click()
Dim maPlage As Range
Dim i As Integer, DernLigne As Long
i = 4
DernLigne = Range("I" & Rows.Count).End(xlUp).Row
Set maPlage = Range(Cells("B4" & i), Cells("I" & DernLigne))
maPlage.Select
'If ComboBox1.list.Value = "2013" Then
MsgBox "File(s) have been exported!", vbInformation, "Organic Software 2015"
Unload UserForm1
End Sub