استخدم ده والاحمر ده الباث باع الصور عندك على الجهاز
Function VLOOK_Pic1(PicName)
Dim CurrentCel As Range, Pic As Shape
PicName = PicName: MyPath = ThisWorkbook.Path & "\StaffPhotos\": PicName = MyPath & PicName: ChkPic = Array(".jpg", ".bmp", ".gif", ".png")
Set CurrentCel = Application.Caller
For Each Pic In ActiveSheet.Shapes
If Pic.Type = msoLinkedPicture Then
If Pic.Top >= CurrentCel.Top And Pic.Top < CurrentCel.Top + CurrentCel.Height Then
Pic.Delete
Exit For
End If
End If
Next
For X = LBound(ChkPic) To UBound(ChkPic)
If Not Dir(PicName & ChkPic(X), vbDirectory) = vbNullString Then
Set Pic = ActiveSheet.Shapes.AddPicture(PicName & ChkPic(X), True, False, CurrentCel.Left, CurrentCel.Top, CurrentCel.Width, CurrentCel.Height): VLOOK_Pic1 = ""
Exit For
Else
VLOOK_Pic1 = "áÇ ÊæÌÏ ÕæÑÉ"
End If
Next
End Function