Hi All,
I have a problem statement where I need to count the no. of object/image in specific range/cell/merged cells.
For example
I have merged cell B19(covering B19 to E25). and these cells contains 2 objects(pdf/excel inserted as object).
Now I want to count the no. of objects , which are exist in this specific range.
I already have a code which I am using , but its checking only 1 object and I need to modify it to show output as count of object.
Looking forward for the valuable support.
Regards,
Rajender
I have a problem statement where I need to count the no. of object/image in specific range/cell/merged cells.
For example
I have merged cell B19(covering B19 to E25). and these cells contains 2 objects(pdf/excel inserted as object).
Now I want to count the no. of objects , which are exist in this specific range.
I already have a code which I am using , but its checking only 1 object and I need to modify it to show output as count of object.
Looking forward for the valuable support.
Code:
Dim Pict As Object
Application.Volatile
Caddress = Cell.Address
For Each Pict In Application.Caller.Parent.Pictures
If Pict.TopLeftCell.Address = Caddress Or Pict.BottomRightCell.Address = Caddress Then
HASpic = True
Exit Function
End If
Next Pict
HASpic = False
End Function
Regards,
Rajender
Last edited: