Sub CopiePartieTablo()
Dim TabloInit() As Variant
Dim TabloFinal() As Variant
With Sheets("SAL")
TabloInit = .UsedRange.Value
End With
For i = LBound(TabloInit, 1) + 1 To UBound(TabloInit, 1)
For j = 12 To 17
If TabloInit(i, j) <> "" Then TailleFinal = TailleFinal + 1
Next j
Next i
ReDim TabloFinal(1 To TailleFinal, 1 To 11)
k = 1
For i = LBound(TabloInit, 1) + 1 To UBound(TabloInit, 1)
For j = 12 To 17
If TabloInit(i, j) <> "" Then
TabloFinal(k, 1) = TabloInit(i, 7)
TabloFinal(k, 2) = TabloInit(i, 4)
TabloFinal(k, 3) = TabloInit(i, 5)
TabloFinal(k, 4) = TabloInit(i, 6)
TabloFinal(k, 5) = TabloInit(i, 8)
TabloFinal(k, 6) = TabloInit(i, 9)
TabloFinal(k, 7) = TabloInit(i, j)
TabloFinal(k, 8) = TabloInit(i, j + 6) / 100
TabloFinal(k, 9) = TabloInit(i, 24) / 100
TabloFinal(k, 10) = TabloInit(i, 25) / 100
TabloFinal(k, 11) = TabloInit(i, 26) / 100
k = k + 1
End If
Next j
Next i
With Sheets("SAL AU FORMAT")
.UsedRange.Offset(1, 0).Clear
.Range("A2").Resize(UBound(TabloFinal, 1), UBound(TabloFinal, 2)) = TabloFinal
End With
End Sub