+ Reply to Thread
Results 1 to 5 of 5

Remove extra space from the end of the cell contain text

  1. #1
    Forum Contributor satputenandkumar0's Avatar
    Join Date
    11-08-2012
    Location
    Pune, India
    MS-Off Ver
    Office xp & Office 2007
    Posts
    398

    Question Remove extra space from the end of the cell contain text

    Dear Members,

    I am regular reader of this forum. I have one problem. In my spreadsheet (i have attached) in many cells there are extra spaces are end of the text. How can I remove these extra spaces end of the text in the cell. I have large amount of data.

    I hope you will help me.

    Thanks & Regards,
    Nandkumar S
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    12-30-2011
    Location
    Bristol, UK
    MS-Off Ver
    Excel 2010
    Posts
    82

    Re: Remove extra space from the end of the cell contain text

    Hi there,

    You could try some VBA here. This should work:

    Please Login or Register  to view this content.
    Just change the range (currently set as A1:I50) to suit you data.

    HTH,

    FermentedR

  3. #3
    Forum Contributor satputenandkumar0's Avatar
    Join Date
    11-08-2012
    Location
    Pune, India
    MS-Off Ver
    Office xp & Office 2007
    Posts
    398

    Re: Remove extra space from the end of the cell contain text

    Dear Fermented Reptile

    I works perfect.

    I just wanted to thank you for your timely and kind responses to this matter.

    Thanks again.............

  4. #4
    Forum Contributor satputenandkumar0's Avatar
    Join Date
    11-08-2012
    Location
    Pune, India
    MS-Off Ver
    Office xp & Office 2007
    Posts
    398

    Re: Remove extra space from the end of the cell contain text

    Dear Fermented Reptile

    I works perfect.

    I just wanted to thank you for your timely and kind responses to this matter.

    Thanks again.............

  5. #5
    Forum Contributor satputenandkumar0's Avatar
    Join Date
    11-08-2012
    Location
    Pune, India
    MS-Off Ver
    Office xp & Office 2007
    Posts
    398

    Re: Remove extra space from the end of the cell contain text

    Dear Fermented Reptile,

    Sorry to say I have one more problem when I have entered below code.


    Sub Trimmer()
    With Range("A1:I5000")
    .Value = Application.Trim(.Value)
    End With
    End Sub


    I am getting below error

    Run-time error '13':
    Type mismatch


    pls help me.

    Regards,
    Nandkumar S.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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