简体   繁体   中英

How to insert an image into a cell in office 365 Excel?

I want to insert image inside cell with not movable. Otherwise add an Image in comments also fine. Please help me.

在此处输入图片说明

If you want to use a comment, which looks like you have above, first add a comment, and follow these steps:

  1. Right-click the cell which contains the comment.
  2. Choose Show/Hide Comments, and clear any text from the comment.
  3. Click on the border of the comment, to select it & Right Click on the border.
  4. Choose Format Comment. On the Colors and Lines tab, click the drop-down arrow for Color.
  5. Click Fill Effects at the bottom. On the picture tab, click Select Picture
  6. Locate and select the picture. To keep the picture in proportion, add a check mark to Lock Picture Aspect Ratio
  7. Click Insert, click OK, click OK
  8. Go back to the cell, right click and click Hide Comment.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM