Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Dim rep$, nom$, C As Range
If Not Application.Intersect(Target, Range("A1")) Is Nothing Then 'Cellule A1
Exit Sub
Else
If Not Application.Intersect(Target, Range("A:A")) Is Nothing Then 'col A
Cancel = True
rep = ActiveWorkbook.Path & "\SAUVEGARDE-OT\2022\"
nom = Target.Value
Call testouverture
If Not FichierOuvert(nom & ".xlsm") = True Then
Workbooks.Open rep & nom & ".xlsm"
Call testouverture
End If
End If
End If
End Sub