Hi, I need little help please. I have been searching and only find the way to select the shapes in the specific area but I wanted to do the opposite. I wanted to select specific range if there is shape in it.
Code to select the object I have so far
This is what I wanted to achived
For example, there are 5 shapes in the sheet, I want to select range that there are shape in it starting from row 15 onward, so in the example below the range that need to be selected is D15:K28.
Any guidance will be much appreciated.
Thank you
Code to select the object I have so far
VBA Code:
Sub SelectShapes()
Dim shp As Shape
Dim r As Range
Set r = Range("D15:K28")
For Each shp In ActiveSheet.Shapes
If Not Intersect(Range(shp.TopLeftCell, shp.BottomRightCell), r) Is Nothing Then _
shp.Select Replace:=False
Next shp
End Sub
This is what I wanted to achived
For example, there are 5 shapes in the sheet, I want to select range that there are shape in it starting from row 15 onward, so in the example below the range that need to be selected is D15:K28.
Any guidance will be much appreciated.
Thank you