You are on page 1of 1

Dim cindx As Integer

Dim rindx As Integer

Dim srce As Variant

Dim vent As Variant

Dim count As Integer

rindx = 0

count = 0

Set vent = Sheets("feuille2").Range("A3")

Set srce = Sheets("feuille1").Range("A3")

While srce.Offset(rindx, 0) <> ""

For cindx = 0 To 10

If srce.Offset(rindx, 4 + cindx) <> "" Then

vent.Offset(count, 0) = srce.Offset(rindx, 0)

vent.Offset(count, 4) = srce.Offset(-1, 4 + cindx)

count = count + 1

End If

Next cindx

rindx = rindx + 1

Wend

You might also like