Home |
Search |
Today's Posts |
#1
|
|||
|
|||
Covertion Frame to Text Box
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 |
#2
|
|||
|
|||
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 Word MVP web site http://word.mvps.org -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org Pauba wrote: 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 |
#3
|
|||
|
|||
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 "Graham Mayor" wrote in message ... 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 Word MVP web site http://word.mvps.org -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org Pauba wrote: 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 |
#4
|
|||
|
|||
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 Word MVP web site http://word.mvps.org Pauba wrote: 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 "Graham Mayor" wrote in message ... 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 Word MVP web site http://word.mvps.org -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org Pauba wrote: 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 |
#5
|
|||
|
|||
"Graham Mayor" wrote in message ... 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 |
#6
|
|||
|
|||
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 Word MVP FAQ site: http://word.mvps.org Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit. "Pauba" wrote in message ... 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 "Graham Mayor" wrote in message ... 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 Word MVP web site http://word.mvps.org -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org Pauba wrote: 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 |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How do I remove text frame corners in word? | Microsoft Word Help | |||
Help Instruction: I Can't select all the text in my linked text bo | Microsoft Word Help | |||
Widow/orphan control not working | Page Layout | |||
postioning a frame | Microsoft Word Help | |||
Outline | Page Layout |