Re-,
Essaie ces deux codes :
Pour les liens hypertextes :
Sub Macro3()
Dim Cel As Range
Dim Lien As String
For Each Cel In Range("D4:D19")
If Cel <> "" Then
Lien = Mid(Cel.Value, 1, (Len(Cel.Value) / 2) - 1)
Cel.Hyperlinks.Add Cel, Lien, , , "PDF"
End If
Next Cel
End Sub
Et pour le total, tu modifies ton double clic ainsi (ps, j'ai mis un "x" dans la colonne G, tu pourras remettre comme tu veux en début de code...)
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
If Not Intersect(Target, Cells(1, "I")) Is Nothing Then
DerLn = Cells(20, "B").End(xlUp).Row
For Ln = 3 To DerLn
If Cells(Ln, 7) = "x" Then
Lgn = Cells(Rows.Count, "B").End(xlUp).Row + 1
Range(Cells(Ln, "A"), Cells(Ln, "C")).Copy
Cells(Lgn, "A").PasteSpecial xlPasteValues
End If
Next Ln
End If
Range("G22:G40").Clear
With Cells(Lgn, 7)
.FormulaR1C1 = "=SUMPRODUCT(R22C3:R" & Lgn & "C3,R22C6:R" & Lgn & "C6)"
.NumberFormat = "$#,##0.00_);($#,##0.00)"
End With
Cells(1, "A").Select
End Sub
Bon courage