Select shape if visible

Started by kiler40, March 31, 2015, 07:17:02 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

kiler40

Hello everybody !
I have created a routine that selects all shapes in specific boundaries.
But i have a lot of hidden (Layers are controlling visibility) shapes.
Is there a way NOT TO select hidden one but just visible shapes ?

Thanks in advance !

Andrei

Yacine


Work with the selection of shapes of the active window, instead of the shapes of the page.

Sub test()
ActiveWindow.SelectAll
For Each shp In ActiveWindow.Selection
Debug.Print shp.Name
Next shp
Debug.Print "____"
For Each shp In ActivePage.Shapes
Debug.Print shp.Name
Next shp
End Sub


Yacine

kiler40

Ah...
select all, and after that deselect what is not in the range i`m interested in.
Thanks a lot !
This was something new :)