List object names from desktop area

Is it possible to display object name values from desktop layer (not from the active page) ?

I am already using macro for renaming objects and moving them from all pages to desktop area.

Also using a macro to find the objects with particular value. But now I need a macro to display the object name values of each renamed objects. (All renamed object values are integer)

Can anyone help with this ?

Parents
No Data
Reply
  • VBA Code

    Sub NamesFromDesktopArea()
        Dim s As Shape, SR As ShapeRange, p As Page

        Set p = ActivePage
        Set SR = ActiveDocument.ActivePage.SelectShapesFromRectangle(p.LeftX, p.TopY, p.RightX, p.BottomY, True).Shapes.All
        ActivePage.Shapes.All.CreateSelection
        SR.RemoveFromSelection
        Set SR = ActiveSelectionRange
        For Each s In SR
            Debug.Print s.Name
        Next s
    End Sub

Children