+ Reply to Thread
Results 1 to 6 of 6

Any ways to remove space at the end of each line

  1. #1
    Registered User
    Join Date
    06-26-2017
    Location
    India
    MS-Off Ver
    2010
    Posts
    40

    Any ways to remove space at the end of each line

    Hi all.
    Hope all is good.

    Can anyone please help me with one of my requirement that is mentioned below ?

    I have a word document wherein it has lots of lines in it. (approximately 1000 - 1500 lines). At the end of each and every line, there is a space given in it and I want to remove that space which is given at the end of each line.

    As of now, I am doing manually which is taking lot of time.

    Can anyone please tell me, is there any option where I can delete the space at the end of each line in one shot or as quick as possible ?

    Thanks in advance for your time in reading this post and providing me the solution.

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365/2016
    Posts
    7,880

    Re: Any ways to remove space at the end of each line

    Here is video on how to do this
    https://www.youtube.com/watch?v=HMl-8qOBl_M
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Forum Expert sandy666's Avatar
    Join Date
    02-05-2015
    Location
    BE
    MS-Off Ver
    PC 2016
    Posts
    4,550

    Re: Any ways to remove space at the end of each line

    Find what: _^p
    Replace with: ^p

    undescore is a space here
    sandy (NO CAPS)
    Excel can do everything but still doesn't read user's wishful thinking
    The ready made solution will not teach anyone anything

    A logical description of the problem is the basis of dialogue and a rapid solution. Nobody sits in your head to understand your way of thinking
    Note: English is not my native language
    Keep It Sophisticatedly Simple

  4. #4
    Registered User
    Join Date
    06-26-2017
    Location
    India
    MS-Off Ver
    2010
    Posts
    40

    Re: Any ways to remove space at the end of each line

    Hi Alkey & Sandey,

    Thanks a lot for your time and reply.

    But both the solutions as you have mentioned aren't working.

    Attached is just the sample for my explaination.

    In the attached word file, I need to remove the spaces at the end of each line.
    In each line of my attached word file, the last words are "the, dragoman, to, valuable, shoulder, it, body, was, to & his". At end of these words there are spaces and I need to remove those spaces. I don't need even a single space at the end of every line.

    Thank you.
    Attached Files Attached Files

  5. #5
    Forum Expert sandy666's Avatar
    Join Date
    02-05-2015
    Location
    BE
    MS-Off Ver
    PC 2016
    Posts
    4,550

    Re: Any ways to remove space at the end of each line

    Could you show result example?

    Your text is a one single sentence with ^p (paragraph mark) on the end.

    Change orientation to see how it looks with longer text horizontal
    There is 214 words, 213 spaces, no double spaces, this is one single line (if no wrap by ruler)

    maybe use Ctrl+J
    Last edited by sandy666; 10-10-2017 at 02:06 PM.

  6. #6
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    2,122

    Re: Any ways to remove space at the end of each line

    Why would you want to remove spaces at the ends of lines within a paragraph (your attachment has only one paragraph)? Do that and all you'll get is the words that were at the end of each line being joined to the words at the start of the next lines...
    Cheers,
    Paul Edstein
    [MS MVP - Word]

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1