Hi, I asked the question before and already have the code working for selected all shapes from specific row downward, but the issue now is that it won't work in version 2013. It is show error message, not sure what the issue is. Please see the existing code below. Your suggestion will be much appreciated.
Thank you
Thank you
VBA Code:
Private Sub SelectShapes()
Dim shp As Shape, Lft As Integer, Rht As Integer, Bot As Integer
Lft = 999: Rht = 1: Top = 999
Application.ScreenUpdating = False
Worksheets("Sheet1").Select
For Each shp In ActiveSheet.Shapes
If shp.TopLeftCell.Row > 6 Then
Lft = Application.WorksheetFunction.Min(Lft, shp.TopLeftCell.Column)
Top = Application.WorksheetFunction.Min(Top, shp.TopLeftCell.Row)
Rht = Application.WorksheetFunction.Max(Rht, shp.BottomRightCell.Column)
Bot = Application.WorksheetFunction.Max(Bot, shp.BottomRightCell.Row)
End If
Next shp
If Not (Lft = 999 And Top = 999) Then Range(Cells(Top - 2, Lft - 1), Cells(Bot + 2, Rht)).Select
Application.ScreenUpdating = True
End Sub