Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
binar binar is offline
external usenet poster
 
Posts: 90
Default Macro for TEXT Box to Plain Text Conversion?

Fellow Forum Members,
I have a table containing a lot of data that was created using some
engineering application from Autodesk. The file has been converted to a CGM
format and this enables me to import it into WORD 2003 and take the table
apart. The problem is that the data for the table converts into a bunch of
objects. The text alone is made up of close to 400 individual text boxes. I
need help creating a macro that will select the text inside each text box and
then paste it as plain text on a page. Manually converting close to 400 text
boxes using a cut and paste operation is something I would like to avoid. I
would appreciate it if anyone out there can help me figure out how to best
convert 400 text boxes each containing text I need converted into Plain Text.
Thanks.
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Bear[_2_] Bear[_2_] is offline
external usenet poster
 
Posts: 314
Default Macro for TEXT Box to Plain Text Conversion?

Binar:

I created five text boxes, each with one letter, spelling the word "Write."
I used the drawing selection tool to select all five, and was able to extract
each letter with this code in the immediate box.

?Selection.ShapeRange(1).TextFrame.TextRange.Text

In other words, whatever group of shapes you can gather into a shaperange --
say all the shapes in a Cell.Range, you can step through and build into a
text string.

Bear

--
Windows XP, Word 2000


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
Auto-Correct - Plain Text or Formatted Text toggle is disabled Rickijayne Microsoft Word Help 1 May 16th 07 05:16 PM
plain text in text box does not print - Word 2003 mdbg Microsoft Word Help 5 December 6th 06 10:20 PM
How do I use a macro to open a doc as text, without conversion JP Microsoft Word Help 1 May 19th 05 06:00 AM
Conversion of "Plain Text"...? Kenneth Microsoft Word Help 3 May 10th 05 01:02 PM
Macro for multiple Table --> Text conversion David Gareau via OfficeKB.com Tables 7 February 9th 05 04:23 AM


All times are GMT +1. The time now is 04:25 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"