Thanks to Maccas (from MS Office Forum) and BrianWren here for contributing into the settlement of query.
The problem is solved as I made some adjustments in Maccas's macro as follows.
Sub testit()
WipeOffRng Selection
End Sub
Sub WipeOffRng(WipeRange As Range)
Dim isect As Range
Dim wkSheet As Worksheet
Dim Shp As Shape
Dim rngShp As Range
' Set the worksheet
Set wkSheet = WipeRange.Parent
' Loop through every shape
For Each Shp In wkSheet.Shapes
' Dtermine the block range
Set rngShp = Range(Shp.TopLeftCell, Shp.BottomRightCell)
' Test for any sort of overlap
'If Not Intersect(WipeRange, rngShp) Is Nothing Then
' Test for fully inside
Set isect = Intersect(WipeRange, rngShp)
If isect Is Nothing Then
Else
Shp.Delete
End If
Next Shp
End Sub
|