Regueiro
XLDnaute Impliqué
Bonjour à tous
Comment transposer les données en I4
Merci pour votre Aide
Comment transposer les données en I4
Merci pour votre Aide
VB:
Sub transpose()
Dim WS1 As Worksheet
Set WS1 = Sheets("data for diagrams")
'Range("C32:CY32,C47:CY47,C63:CY63;C79:CY79,C95:CY95")
Dim a(1 To 5)
a(1) = WS1.Range("C32:CY32").Value
a(2) = WS1.Range("C47:CY47").Value
a(3) = WS1.Range("C63:CY63").Value
a(4) = WS1.Range("C79:CY79").Value
a(5) = WS1.Range("C95:CY95").Value
For i = 1 To 5
For j = 1 To UBound(a(i))
'If a(i)(j, 1) <> "" Then ComboBox1.AddItem a(i)(j, 1)
'If a(i)(j, 1) <> "" Then
[I4].Resize (a(i)(j, 1) = Application.transpose(a(i)(j, 1)))
Next j
Next i
End Sub