How to check if a cell has a picture?

后端 未结 6 1448
名媛妹妹
名媛妹妹 2020-12-10 18:10

In Excel, I want to check if a specific cell for instance \"C12\" has a picture?
How could I do this?

6条回答
  •  孤街浪徒
    2020-12-10 18:33

    For Each wShape In ActiveSheet.Shapes
    If (wShape.Type <> 13) Then wShape.Delete ' If the shape doesn't represent a Picture,     ' delete
    Next wShape
    

提交回复
热议问题