Sub CommandButton1_Click()
Dim FL1 As Worksheet, NoCol As Integer
Dim NoLig As Long, Var As Variant, NoSupslash As String, NoLimitcar As String, NoTitle As String, NoSupslashspace As String
Set FL1 = Worksheets("Equipement")
NoCol = 6
For NoLig = 1 To Split(FL1.UsedRange.Address, "$")(4)
Var = FL1.Cells(NoLig, NoCol)
If Var = "Oui" Then
Worksheets("Fiche équipement type").Copy After:=Worksheets(Worksheets.Count)
NoTiltle = FL1.Cells(NoLig, 1).Text
NoSupslash = Replace(NoTiltle, "/", "-")
NoLimitcar = Mid(NoSupslash, 1, 31)
Worksheets(Worksheets.Count).Name = NoLimitcar
Worksheets(Worksheets.Count).Range("F4") = FL1.Cells(NoLig, 1)
FL1.Hyperlinks.Add FL1.Cells(NoLig, 1), "", "'" & NoLimitcar & "'!C9"
Set im = ActiveSheet.Shapes.AddPicture(ActiveSheet.Range("C9"), False, True, 500, 150, 200, 200) 'Lien photo, Lien vers dossier, Enregistrement sur fichier, Left, Top, Width, Height
End If
Next
Set FL1 = Nothing
End Sub