If you want to use a comment, which looks like you have above, first add a comment, and follow these steps:
Now when you mouse over that cell, the picture will come up.
If you want the picture to permanantly be in the cell, use the Insert tab-Pictures. Once inserted into your cell, right click on the picture, go to Size and Properties, and click the Move and size with cells under the Properties.
Since the options provided by Kent are not available in Excel 365 you can use the following VBA code to add an image in a specific cell as note.
Sub addPicture()
With ActiveCell
.AddComment
.Comment.Shape.Fill.UserPicture("C:\Users\User\Desktop\YourImageHere.jpg")
With .Comment.Shape
.Height = 100 'adjust Height
.Width = 200 'adjust Width
End With
End With
End Sub
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.