Results 1 to 12 of 12

Clean and Trim Not Working

Threaded View

HangMan Clean and Trim Not Working 01-05-2013, 05:41 PM
Andrew-R Re: Clean and Trim Not Working 01-05-2013, 05:46 PM
martindwilson Re: Clean and Trim Not Working 01-05-2013, 05:49 PM
HangMan Re: Clean and Trim Not Working 01-05-2013, 05:52 PM
Andrew-R Re: Clean and Trim Not Working 01-05-2013, 05:56 PM
HangMan Re: Clean and Trim Not Working 01-05-2013, 06:05 PM
Andrew-R Re: Clean and Trim Not Working 01-05-2013, 06:10 PM
HangMan Re: Clean and Trim Not Working 01-05-2013, 06:27 PM
Andrew-R Re: Clean and Trim Not Working 01-05-2013, 06:38 PM
HangMan Re: Clean and Trim Not Working 01-05-2013, 07:13 PM
HangMan Re: Clean and Trim Not Working 01-05-2013, 07:14 PM
HangMan Re: Clean and Trim Not Working 01-05-2013, 07:03 PM
  1. #1
    Forum Contributor
    Join Date
    06-21-2010
    Location
    -
    MS-Off Ver
    Excel 2010
    Posts
    1,211

    Clean and Trim Not Working

    I have a series of numbers which have spaces at the end, which I need to remove. I started by running a 'Trim' macro over the numbers but this didn't remove the spaces, so I assumed there must be special characters after the numbers, so I then tried running a 'Clean' macro over the numbers, followed by the 'Trim' Macro, but this still doesn't remove the extra spaces after the numbers.

    Can anyone identify what the problem is? Both Macros are included in the attached workbook.

    Is it simply the case that the 'Clean' macro isn't cleaning the string, if so, how can I adapt this to remove any special characters? Also, how do I tell there are special characters there in the first place?

    Is there an easy way to then combine the two macros so that it first cleans and then trims?

    Many thanks
    Attached Files Attached Files

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