I am trying to count the number of shapes in a range and cannot work out the syntax. I can count all the shapes ona sheet but not in a defined range.
this is the start of my code.
aName = ActiveSheet.Name
Set mydocument = Worksheets(aName)
Range(“Test”).Select
Set check = mydocument.Shapes.Range(“Test”).Count
MsgBox check
It fails when I try and set check with runtime error 1004. Test is a defined range on the sheet and has shapes with in it.
thanks
Peter