PC Review


Reply
Thread Tools Rate Thread

Covertion Frame to Text Box

 
 
Pauba
Guest
Posts: n/a
 
      1st Oct 2005
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 With Quote
 
 
 
 
Graham Mayor
Guest
Posts: n/a
 
      2nd Oct 2005
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 With Quote
 
Pauba
Guest
Posts: n/a
 
      3rd Oct 2005
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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 With Quote
 
Graham Mayor
Guest
Posts: n/a
 
      3rd Oct 2005
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" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> 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 With Quote
 
Pauba
Guest
Posts: n/a
 
      3rd Oct 2005

"Graham Mayor" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> 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


 
Reply With Quote
 
Suzanne S. Barnhill
Guest
Posts: n/a
 
      4th Oct 2005
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > 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 With Quote
 
New Member
Join Date: Nov 2011
Posts: 2
 
      22nd Feb 2012
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.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tutorial on how to draw a transparent text box/frame around text paragraphes in Word 2003? Camille Petersen Microsoft Word New Users 0 3rd Aug 2010 06:51 PM
Creating a text FRAME/border, ie text hugs the frame of an object? =?Utf-8?B?SGF2aW5nbXljYWtl?= Microsoft Powerpoint 0 13th Apr 2006 03:45 PM
Changing the function color covertion (unsafe) =?Utf-8?B?VG9tSEw=?= Microsoft C# .NET 1 26th Oct 2005 10:04 PM
Covertion =?Utf-8?B?U3RpbGxfbGVhcm5pbmc=?= Microsoft Excel Misc 1 10th Oct 2004 05:30 AM
covertion KIM Microsoft Access 1 2nd Mar 2004 10:58 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:47 AM.