Finding a Frame

P

Peter

Hello guys:

I have a macro to deal with text inside a text box (it copies the text from
textframes into a table). See its beginning:
-------------
For i = 1 To ActiveDocument.Shapes.Count
With ActiveDocument.Shapes(i)
If .TextFrame.HasText Then
----------------
....and it works fine.
Now, I have OCRed a document and I have text inside Frames (they are not
text boxes).
How can I find those Frames? That is, now I want to find text inside frames,
and not inside "TextFrames."

Any help is welcome.

Thank you,

Peter
 
J

Jonathan West

Hi Peter,

The ActiveDocument has a Frames collection. You can cycle through that in
much the same way as you are cycling through textboxes in the Shapes
collection.
 

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