For Tom Urtis, Deleting spaces with VBA code
For Tom Urtis, Deleting spaces with VBA code
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: For Tom Urtis, Deleting spaces with VBA code

  1. #1
    New Member
    Join Date
    Feb 2002
    Posts
    9
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

     
    Tom

    Thanks for your response

    I was not specific enough in my needs; I want to delete spaces before and after a text but I don't want to delete spaces inside the text; for instance, for cost of product, I want all the spaces before and after deleted but not the ones between cost and of and of and product

    Thanks


  2. #2
    MrExcel MVP Tom Urtis's Avatar
    Join Date
    Feb 2002
    Location
    San Francisco, California USA
    Posts
    11,136
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Would the TRIM function help then? Something like
    =TRIM(A1)

    Then you can copy it down, and paste special values over the formula'd range. Would that work?

    Tom Urtis

  3. #3
    New Member
    Join Date
    Feb 2002
    Posts
    9
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

      
    Tom

    Yes it works

    Thanks

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

 

 
DMCA.com