finding shapes or text box within a word 2000 document

L

lots of questions

Is there a way to identify the page number in a Word
document that contains a shape (e.g. a rectangle or text
box)? Are shapes tied to a paragraph mark? If so - is
there a way to find the page number containing the
paragraph to which the shape is tied.
 
H

Helmut Weber

Hi,

number of shapes on page 7:
Selection.GoTo what:=wdGoToPage, which:=wdGoToAbsolute, Count:=7
Selection.Bookmarks("\page").Range.Select
MsgBox Selection.Range.ShapeRange.Count

On which page is shape 1:
MsgBox
ActiveDocument.Shapes(1).Anchor.Information(wdActiveEndPageNumber)

Greetings from Bavaria, Germany

Helmut Weber, MVP
"red.sys" & chr(64) & "t-online.de"
Word XP, Win 98
http://word.mvps.org/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top