Sub SelectAllPicturesInSelectedRange()
Dim oShape As shape
Dim rUserSel As Range
Sheet6.Range("E24:W204,AI1:BA204").Select
If TypeName(Selection) <> "Range" Then Exit Sub
Set rUserSel = Selection
For Each oShape In Sheet6.Shapes
If oShape.Type = msoPicture Then
If Not Intersect(oShape.TopLeftCell, rUserSel) Is Nothing Then
oShape.Select False
End If
End If
Next oShape
For Each oShape In Sheet7.Shapes
If oShape.Type = msoPicture Then
If Not Intersect(oShape.TopLeftCell, rUserSel) Is Nothing Then
oShape.Select False
End If
End If
Next oShape
End Sub
Dim oShape As shape
Dim rUserSel As Range
Sheet6.Range("E24:W204,AI1:BA204").Select
If TypeName(Selection) <> "Range" Then Exit Sub
Set rUserSel = Selection
For Each oShape In Sheet6.Shapes
If oShape.Type = msoPicture Then
If Not Intersect(oShape.TopLeftCell, rUserSel) Is Nothing Then
oShape.Select False
End If
End If
Next oShape
For Each oShape In Sheet7.Shapes
If oShape.Type = msoPicture Then
If Not Intersect(oShape.TopLeftCell, rUserSel) Is Nothing Then
oShape.Select False
End If
End If
Next oShape
End Sub