Selecting an object on a page

R

Roderick O'Regan

I want to put my cursor on any particular page of choice in a Word
document and then find a shape of a certain type.

I know how to ripple through a whole document and change a shape's
properties using a For Each... statement but I dont know how to
confine my search just to the page my selection is on.

Could someone suggest a method of doing this please?

Roderick
 
J

Jonathan West

Roderick O'Regan said:
I want to put my cursor on any particular page of choice in a Word
document and then find a shape of a certain type.

I know how to ripple through a whole document and change a shape's
properties using a For Each... statement but I dont know how to
confine my search just to the page my selection is on.

Could someone suggest a method of doing this please?

Roderick

Dim oShape as Shape
For each oShape in ActiveDocument.Bookmarks("\Page").Range.ShapeRange
' work on the shape here
Next oShape
 
R

Roderick O'Regan

Thanks Jonathan.

That did the trick!

Dim oShape as Shape
For each oShape in ActiveDocument.Bookmarks("\Page").Range.ShapeRange
' work on the shape here
Next oShape
 
Top