1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| Option Base 1
Sub Macro3()
Dim limitdown, limitup, limitright, compteur, i As Integer
limitdown = Sheets("Monitor").Range("I65000").End(xlUp).Row
limitup = Sheets("Monitor").Range("I1").End(xlDown).Row
limitright = Sheets("Monitor").Range("AC" & limitup + 1).End(xlToLeft).Column
Sheets("Monitor").Cells(limitup + 1, limitright).Resize(limitdown - limitup, 1).RemoveDuplicates Columns:=1, Header:=xlNo
limitdown = Sheets("Monitor").Cells(limitup, limitright).End(xlDown).Row
compteur = limitdown - limitup
Dim tabl() as double
Redim tabl(compteur)
For i = 1 To compteur
tabl(i) = Sheets("Monitor").Cells(limitup + i, limitright).Value
Next i
End Sub |
Partager