Bonjour,
J'ai lu cette discussion.
J'ai une erreur qui me dit Image incorrecte...
Alors du coup j'ai une grosse envie de dire "Mais euuuuuuhhhhhhh..."
Voici le code :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 Private Sub Worksheet_Activate() Application.ScreenUpdating = False Dim wb As Workbook Dim fl As Worksheet Dim c As Range Set wb = ThisWorkbook Set fl = wb.Worksheets("Résultat") For Each c In fl.Range("B2:I" & fl.Cells.SpecialCells(xlCellTypeLastCell).Row).Cells Debug.Print wb.Path, c.Value * 2 & "star.png" c.Picture = LoadPicture(wb.Path & "\etoiles\" & c.Value * 2 & "star.png") Next c Application.ScreenUpdating = True End Sub
Partager