Option Explicit
Sub Alpha()
Dim Cel As Range
With Worksheets("Annuaire").ListObjects("TData").Sort
.SortFields.Clear
.SortFields.Add2 Key:=Range("TData[Nom]"), _
SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:=xlSortNormal
.Header = xlYes
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
.Apply
End With
Set Cel = [Tdata[Nom]].ListObject.Range.Find("", , xlValues, xlWhole)
If Cel Is Nothing Then
[Tdata[Nom]].ListObject.ListRows.Add
Set Cel = [Tdata[Nom]].ListObject.Range.Find("", , xlValues, xlWhole)
End If
Cel.Select
End Sub
Sub Effacer_Annuaire()
If Not [Tdata].ListObject.DataBodyRange Is Nothing _
Then [Tdata].ListObject.DataBodyRange.Delete
End Sub
Sub Effacer_Liste()
If Not [T_maliste].ListObject.DataBodyRange Is Nothing _
Then [T_maliste].ListObject.DataBodyRange.Delete
End Sub