et ben oui ca fait 0.0399, quel idiot !
Merci beaucoup de votre réactivité,
Sur la sub suivante
<>Private Sub CommandButton1_Click()
Dim PicList() As Variant
Dim PicFormat As String
Dim Rng As Range
Dim sShape As Shape
Dim pict As IPictureDisp, coeff As Double
On Error Resume Next
PicList = Application.GetOpenFilename(PicFormat, MultiSelect:=True)
xColIndex = Application.ActiveCell.Column
If IsArray(PicList) Then
xRowIndex = Application.ActiveCell.Row
For lLoop = LBound(PicList) To UBound(PicList)
Set Rng = Cells(xRowIndex, xColIndex)
Set pict = LoadPicture(PicList(lLoop))
coeff = pict.Width / pict.Height
Set sShape = ActiveSheet.Shapes.AddPicture(PicList(lLoop), True, True, Rng.Left, Rng.Top, IIf(Rng.Width < Rng.Height, Rng.Width, Rng.Height * coeff), IIf(Rng.Width > Rng.Height, Rng.Height, Rng.Width / coeff))
xRowIndex = xRowIndex + 1
Next
End If
End Sub
Comment faire pour que la photo aille dans une cellule défini et non dans la cellule active ?
Promis après je vous laisse tranquille