+ 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
    81

    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
    Posts
    8,903

    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
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

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

    Find what: _^p
    Replace with: ^p

    undescore is a space here

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

    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
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    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
    3,726

    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
    [Fmr 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)

Similar Threads

  1. [SOLVED] Need to remove the space or extra line.
    By Sekars in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-06-2017, 01:35 AM
  2. VBA or formula for Remove space begin and end of Each line Text Data
    By Pankajlko in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-02-2017, 10:26 PM
  3. Remove Line break space
    By ganeshkumar in forum Excel General
    Replies: 1
    Last Post: 03-31-2016, 06:03 PM
  4. [SOLVED] MultiLine Textbox to auto remove blank line, count line, remove duplicate
    By khhoa in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-24-2015, 09:28 PM
  5. How to remove an extra space at the end of the line?
    By EnCECU in forum Excel General
    Replies: 2
    Last Post: 03-01-2014, 04:37 PM
  6. [SOLVED] how to remove break line space...
    By ganeshkumar in forum Excel General
    Replies: 3
    Last Post: 12-12-2013, 08:57 AM
  7. Remove all characters before space in line
    By gartie in forum Excel General
    Replies: 9
    Last Post: 08-29-2012, 05:52 PM

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