when converting text box to frame, data from main doc moves into f

G

Guest

I have a document that contains several dozen text boxes, in addition to the
main body of text. My goal is to extract the text box data, so I wrote a
routine that converts the text boxes to frames, then copies the data in the
frame and pastes it into the main body of the document, either beneath the
paragraph or the table to which the text box/frame was anchored.

This works fine 99% of the time, but sometimes it doesn't work because when
the text box converts to a frame, the text of paragraph to which it's
connected jumps into the frame. This doesn't just happen when I run through
my code; I can also make it happen by going to the "Format" menu, choosing
"Text Box," then going to the "Text Box" tab and clicking the "Convert to
Frame" button.

Just wondering if anyone has experienced this behavior, and if there's a way
to solve it. I can provide a sample file if that would help.
 
S

Suzanne S. Barnhill

FWIW, you should not need to copy the text from the frame and paste it. In
most cases you can remove the frame using the ResetPara command (Ctrl+Q). If
the frame were part of the paragraph style (which it can't be in this case),
you could still use remove frame. This will generally result in the included
text being inserted above the paragraph to which the frame is anchored.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 

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