比如判断[D8]单元格里有无图片:

Sub MACRO1()
Dim SH As Shape, HASPIC As Boolean
For Each SH In ActiveSheet.Shapes
If Application.Intersect(Range(SH.TopLeftCell.Address, SH.BottomRightCell.Address), [D8]) Is Nothing Then HASPIC = True: Exit For
Next
MsgBox "[D8]单元格里" & IIf(HASPIC, "", "没") & "有图片"
End Sub

 

相关文章:

  • 2022-12-23
  • 2021-11-24
  • 2021-12-20
  • 2021-09-18
  • 2021-10-19
  • 2021-07-10
  • 2021-11-30
猜你喜欢
  • 2021-11-23
  • 2022-12-23
  • 2021-09-27
  • 2022-01-09
  • 2021-11-23
  • 2021-12-08
相关资源
相似解决方案