Reply
 
Thread Tools Display Modes
  #1   Report Post  
Tony Logan
 
Posts: n/a
Default when converting text box to frame, data from main doc moves into f

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.

  #2   Report Post  
Suzanne S. Barnhill
 
Posts: n/a
Default

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
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

"Tony Logan" wrote in message
...
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.


Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
My text box keeps copying data from a previous one? Dawn Microsoft Word Help 0 September 7th 05 09:05 PM
how to import data from a single-column text file to a multi-columntable? Tony Young Tables 1 August 4th 05 09:39 AM
Text style in frame outside of margin bakerbiz Microsoft Word Help 4 May 9th 05 02:45 PM
AutoCaptions & Pictures in Word 2003 DKP Page Layout 2 February 17th 05 11:55 PM
How do I keep merged data from advancing surrounding text in a fo. Don Coffey Microsoft Word Help 0 December 23rd 04 04:03 PM


All times are GMT +1. The time now is 12:31 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"