Bonjour,
malgré le manque de précisions, voici un code à adapter si besoin …
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| Sub Transforme(Ws As Worksheet)
Dim Rg As Range
Application.ScreenUpdating = False
With Ws
Set Rg = .[E3].End(xlToRight).CurrentRegion: L& = 3
Do While Rg.Count = 3
A$ = Rg.Cells(3).Address: L = L + 1
Rg.Cut .Cells(L, 2)
Set Rg = .Range(A).End(xlToRight).CurrentRegion
Loop
Set Rg = Nothing
End With
End Sub
Sub Demo()
Transforme Worksheets(4)
End Sub |
__________________________________________________________________________________________
Merci de cliquer sur
![+1](https://www.developpez.net/forums/images/smilies/poucevert.gif)
pour chaque message ayant aidé puis sur
![:resolu:](https://www.developpez.net/forums/images/buttons/resolu.gif)
pour clore cette discussion …
Partager