View Single Post
  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default Convert tabs to spaces

What you are experiencing is inevitable and nothing to do with the plain
text nor the tabs. It concerns the fact that if you have multi-line cell
content, then that content will no longer be multi-line if you convert the
table to text (or save the document containing the table) as plain text. The
cell content opens out and displaces the remaining text, which would remain
tabbed. Frankly I don't see how a macro would be able to sort out such a
random mess.

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


Dion Starfire wrote:
Is there a way to convert a tab into however many spaces are needed
to reach the next tab stop?

I'm trying to convert an html table to a plain text file. Some of the
cells contain multiple lines. Currently, I copy into word, convert
the table to tab-delimited text, then save as plain text. However,
this destroys the column alignment, and messes up the multi-line
'cells'.

If there's not a built in function for this, how could I write a
macro to do this? (I'm at the 'dabbler' proficiency level, but am
very good at using the built-in help system).