如何用VBA判断,工作表中是否有某个已经插入的图片
1个回答
推荐于2017-10-04 · 知道合伙人数码行家
关注
展开全部
这个函数
Function CellImageCheck(CellToCheck As Range) As Integer
Dim wShape As Shape
For Each wShape In ActiveSheet.Shapes
If wShape.TopLeftCell = CellToCheck Then
CellImageCheck = 1
Else
CellImageCheck = 0
End If
Next wShape
End Function
Function CellImageCheck(CellToCheck As Range) As Integer
Dim wShape As Shape
For Each wShape In ActiveSheet.Shapes
If wShape.TopLeftCell = CellToCheck Then
CellImageCheck = 1
Else
CellImageCheck = 0
End If
Next wShape
End Function
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询