Private Sub Worksheet_Activate()
Dim lig&, w As Worksheet, a(1 To 11), i%
Application.ScreenUpdating = False
With [Tableau1] 'tableau structuré
.Rows(1).ClearContents 'RAZ
If .Rows.Count > 1 Then .Rows(2).Resize(.Rows.Count - 1).Delete xlUp 'RAZ
lig = 1
For Each w In Worksheets
Erase a 'RAZ
a(1) = w.Range("K18") & " " & w.Range("F23")
If LCase(a(1)) = LCase(w.Name) Then
a(2) = w.Range("F26")
For i = 3 To 7
a(i) = w.Range("K" & 15 + i)
Next i
a(8) = w.Range("E29") 'bizarre non ???
On Error Resume Next 'au cas où...
a(9) = w.Columns("K").Find("sous-total", , xlValues)(1, 2)
a(10) = w.Columns("J").Find("TVA")(1, 3)
a(11) = w.Columns("K").Find("TTC")(1, 2)
On Error GoTo 0
.Rows(lig) = a 'restitution
Hyperlinks.Add .Cells(lig, 1), "", "'" & w.Name & "'!A1" 'création du lien
lig = lig + 1
End If
Next w
End With
End Sub