+ Reply to Thread
Results 1 to 3 of 3

Pasting Values & Automatically Trim

Hybrid View

  1. #1
    Registered User
    Join Date
    02-18-2011
    Location
    No, Thank You
    MS-Off Ver
    Excel 2003
    Posts
    30

    Question Pasting Values & Automatically Trim

    Hello!

    Real quick question: is there an option in Excel '10 to paste and auto-trim the values?

    I've got a very large amount of data that is pasted regularly and sometimes requires trimming, but having to add that extra step is slowing me down. Any ideas?

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: Pasting Values & Automatically Trim

    When you right-click on the cell and choose PasteSpecial, do you see "Trim" as one of the options available?

    I don't have 2010, but I'm thinking that's not a feature you'll see anytime soon out of Redmond. A macro could quickly go through the column and trim the cells, though.
    Sub trimcells()
    Dim ce as Range
    For each ce in Range("A1:A100")
        ce.Value = Trim(ce.Value)
    Next ce
    End Sub

  3. #3
    Registered User
    Join Date
    02-18-2011
    Location
    No, Thank You
    MS-Off Ver
    Excel 2003
    Posts
    30

    Re: Pasting Values & Automatically Trim

    Thanks plenty! Really helps me out!

+ 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