Bonjour à toutes et à tous,
Je vous souhaite une beau WE :)
Je me permets de vous solliciter car je n'arrive pas à intégrer cette notion :
dans mon code :
Sub tri()
Dim c As Range
Application.ScreenUpdating = False: Application.EnableEvents = False
With Range("j4:j" & Rows.Count)
.NumberFormat = "dd/mm/yyyy" & vbLf & "hh:mm"
.Sort .Cells(1), xlAscending, Header:=xlNo 'tri croissant
For Each c In .Resize(ActiveSheet.UsedRange.Rows.Count)
If IsDate(c) Then
'c.RowHeight = 30
c.WrapText = True
End If
Next
End With
[a1].Select
Application.ScreenUpdating = True: Application.EnableEvents = True
End Sub
En remplacement de : "
.Sort .Cells(1), xlAscending, Header:=xlNo 'tri croissant
Auriez le bon code ?
Un grand merci par avance,
Amicalement,
lionel,