Results 1 to 6 of 6
  1. #1
    Lounger
    Join Date
    Dec 2004
    Location
    Easley, South Carolina, USA
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Deleting Leading Spaces (2003)

    I have hundreds of pages of documents that have a leading space for every line. See attached paragraph.

    Is there a quick way to remove those leading spaces? All I can think of is removing each space one at time.
    Obviously this is not very practical.

    Any advise would be greatly appreciated.
    Attached Files Attached Files

  2. #2
    Star Lounger
    Join Date
    May 2007
    Location
    Seattle, Washington, USA
    Posts
    85
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Re: Deleting Leading Spaces (2003)

    Since there is a paragraph mark at the end of each line, a global replacement

    of -paragraph marks followed by one space
    with -paragraph marks

    should do the trick, for the most part.

    1) in the EDIT menu, select REPLACE (this opens the FIND AND REPLACE screen)
    2) in the FIND WHAT box, type the notation for paragraph marks (which is ^p) and then type a space
    3) in the REPLACE WITH box, type just the ^p, being careful to not follow it with a space
    4) press REPLACE ALL

    This should replace all of your space leaders except of course those that are not preceded by a paragraph mark. Hopefully your document will offer you another easy way to globally replace those spaces.

    By the way, you can also insert such “special characters” as the ^p from the list accessed by pressing SPECIAL in the FIND AND REPLACE window.

  3. #3
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Deleting Leading Spaces (2003)

    Pingdat's suggestion is excellent. Just a small addition: if there could be more than one leading space, you can enter ^p^w in the Find What box. ^w is the code for any white space, i.e. a combination of spaces and tab characters. You'd still use ^p in the Replace With box.

  4. #4
    Super Moderator
    Join Date
    Jan 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    3,852
    Thanks
    4
    Thanked 259 Times in 239 Posts

    Re: Deleting Leading Spaces (2003)

    The other suggestions also work but a quicker way is to select all, centre-align (twice). When you centre align a paragraph the leading spacings are removed. Doing the centre alignment a second time will return the alignment to left aligned (appears to be a toggle).

    The keyboard shortcuts to do this is what makes it faster than using the search and replace methods. Ctrl-A, Ctrl-E, Ctrl-E
    Andrew Lockton, Chrysalis Design, Melbourne Australia

  5. #5
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Deleting Leading Spaces (2003)

    Ctrl+E doesn't act as a toggle for me in Word 2002, so I'd have to use Ctrl+E, Ctrl+L instead of Ctrl+E, Ctrl+E, but that's a neat trick - I didn't know about it!

  6. #6
    Lounger
    Join Date
    Dec 2004
    Location
    Easley, South Carolina, USA
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Deleting Leading Spaces (2003)

    Thanks to all who provided answers to my posting. I use Ctrl Shift End to highlight the document and then Ctrl E Ctrl L. Works very nicely.

    Thomas Cox

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •