Covertion Frame to Text Box

P

Pauba

Hello guys:

Let's say you have a text box.
If you right-click it and open the "Format text box" window. Then, you go to
the "Text box" tab, and there you can "Convert to Frame."
The question is, if I have a Frame, can I convert it to a text box? I could
not find any way to do it... not even through a macro.

Thanks for your help.

Pauba
 
G

Graham Mayor

The short answer is no. However you can delete the frame and replace it with
a text box. A macro containing the following lines will do that if you
select the text the frame contains first.

ActiveDocument.Frames.Delete
Selection.CreateTextbox

http://www.gmayor.com/installing_macro.htm

A text box is in the drawing layer and thus is not seen by some Word
functions acting in the text layer. A frame is in the text layer of the
document.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
P

Pauba

Graham :
First, thank you for your help.
But I am not sure I fully understood you.
My situation is the following - There is a macro that copies text inside
textboxes and places this text in a table. (See macro at
http://www.necco.ca/dv/macros/word/textboxes_out_in.txt)
I need to do the same with text inside frames. I thought that the easiest
way would be to just convert Frames to Text Boxes. It seems it is not that
easy. Is there a way to modify the macro above to find and copy the text in
each of the frames (instead in each of the text boxes)?
Thanks again,

Pauba
 
G

Graham Mayor

That is essentially what the macro I posted does. I have modified it
slightly to cater for documents with more than one frame
Select the frame and run the macro. The text box created has the default
text box parameters.
http://www.gmayor.com/installing_macro.htm

Sub ConvertFrameToTextBox()
Selection.Frames.Delete
Selection.CreateTextbox
End Sub

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
P

Pauba

Graham Mayor said:
That is essentially what the macro I posted does. I have modified it
slightly to cater for documents with more than one frame
Select the frame and run the macro. The text box created has the default
text box parameters.
http://www.gmayor.com/installing_macro.htm

Sub ConvertFrameToTextBox()
Selection.Frames.Delete
Selection.CreateTextbox
End Sub
I'll play around...

Thank you for your prompt help.

Pauba
 
S

Suzanne S. Barnhill

Why not just remove the frame instead, then use Table | Convert | Text to
Table?

--
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.
 
Joined
Nov 20, 2011
Messages
2
Reaction score
0
The macro works, except that any bookmarks in the text are stripped.

However, if you create a text box, then cut and paste the frame insde the it, the frame disappears and the text including bookmarks appears inside the text box.
 

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