Re: Expand tabs

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Numfric wrote:
I have a document created from an Excel spreadsheet. When I convert
table to text, I delimit with tabs, then save as a text file. I now
want to upload to a mainframe, but first I need to expand the tabs to
the requisite number of spaces. This is done in many editors, but I
don't have any of them! Does anyone have a macro to do this in Word?

Just use Edit > Replace. In the Find What box, enter ^t which is the code
for a tab. In the Replace With box, press the spacebar as many times as you
want to have spaces for each tab. Click the Replace All button.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.


.



Relevant Pages

  • Tabs in html document change when the document is saved. Remedy?
    ... the tabs I put into an html document change ... when I save the document or upload it to a website. ...
    (microsoft.public.word.pagelayout)
  • Re: URLScan
    ... And as you noted, it is not required to delimit by tabs, so there is ... no option in IIS to change the log delimiter for W3C format. ... then where is UrlScan inserting space characters into the log ...
    (microsoft.public.inetserver.iis.security)
  • Re: Mystry characters,
    ... Satya said the following on 3/16/2006 7:08 AM: ... using the below function im trying to delimit with ":", ... And please don't use tabs in posted code, use single or double spaces per tab. ... Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/ ...
    (comp.lang.javascript)