Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / July 2007

Tip: Looking for answers? Try searching our database.

Selecting an object on a page

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Roderick O'Regan - 18 Jul 2007 00:04 GMT
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
Jonathan West - 18 Jul 2007 01:10 GMT
>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.
[quoted text clipped - 6 lines]
>
> Roderick

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

Signature

Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup

Roderick O'Regan - 20 Jul 2007 00:34 GMT
Thanks Jonathan.

That did the trick!

>>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.
[quoted text clipped - 11 lines]
>    ' work on the shape here
>Next oShape
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.