+ Reply to Thread
Results 1 to 2 of 2

Add the TRIM function to my macro

  1. #1
    Registered User
    Join Date
    06-26-2015
    Location
    St.Paul, Minnesota
    MS-Off Ver
    Excel 2010
    Posts
    37

    Add the TRIM function to my macro

    Hi,
    I've got a macro that consolidates all of the data within every sheet of a workbook, and copies it into a "combined" sheet within the workbook. As you can see it also does a couple of adjustments to make the data more presentable. However, I want to add one last step to the code. I want the final step of the code to TRIM all of the text within column A, I'm hoping I can have it be trimmed of extra spaces and still remain within column A. I'm not sure how to type this in code. Any help is greatly appreciated!! Thanks! Heres the code:
    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: Add the TRIM function to my macro

    You can add, at the end of your code,

    Please Login or Register  to view this content.

+ 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. Replies: 4
    Last Post: 10-08-2013, 05:10 PM
  2. [SOLVED] Clean Trim Proper Function Using a Macro
    By kamalthakur in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-14-2012, 09:06 PM
  3. trim function
    By noobnxcl in forum Excel General
    Replies: 5
    Last Post: 02-11-2009, 04:21 AM
  4. Trim Function
    By pilotwings64 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-25-2008, 05:26 PM
  5. Trying to trim a trailing space char and the Trim function isn't working
    By Psychochook in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-30-2007, 11:28 PM
  6. Replies: 3
    Last Post: 12-29-2005, 11:10 PM
  7. Trim function in a macro
    By Domingos Junqueira in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-11-2005, 02:49 AM
  8. Trim Function
    By Steved in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 PM

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