+ Reply to Thread
Results 1 to 3 of 3

Code for Trim function

  1. #1
    shaji
    Guest

    Code for Trim function

    I am getting daily sales reports every day. One column contains the ITEMS in
    which there are extra spaces. I know that by trim function I can remove the
    excess spaces. The problem is I want to insert the formula in each cell
    which is very lengthy and there are 350 to 400 records every day. Can anyone
    provide a simple vb code to trim the ITEMS column.



  2. #2
    Bob Phillips
    Guest

    Re: Code for Trim function

    Best to look at Dave McRitchie's all-encompassing TRIMALL function
    http://www.mvps.org/dmcritchie/excel/join.htm#trimall

    --
    HTH

    Bob Phillips

    (replace somewhere in email address with gmail if mailing direct)

    "shaji" <shaji@discussions.microsoft.com> wrote in message
    news:0C0773E2-F11A-4BD5-9C53-225D6EA598CE@microsoft.com...
    > I am getting daily sales reports every day. One column contains the ITEMS

    in
    > which there are extra spaces. I know that by trim function I can remove

    the
    > excess spaces. The problem is I want to insert the formula in each cell
    > which is very lengthy and there are 350 to 400 records every day. Can

    anyone
    > provide a simple vb code to trim the ITEMS column.
    >
    >




  3. #3
    shaji
    Guest

    Re: Code for Trim function

    Thanks Bob

    "Bob Phillips" wrote:

    > Best to look at Dave McRitchie's all-encompassing TRIMALL function
    > http://www.mvps.org/dmcritchie/excel/join.htm#trimall
    >
    > --
    > HTH
    >
    > Bob Phillips
    >
    > (replace somewhere in email address with gmail if mailing direct)
    >
    > "shaji" <shaji@discussions.microsoft.com> wrote in message
    > news:0C0773E2-F11A-4BD5-9C53-225D6EA598CE@microsoft.com...
    > > I am getting daily sales reports every day. One column contains the ITEMS

    > in
    > > which there are extra spaces. I know that by trim function I can remove

    > the
    > > excess spaces. The problem is I want to insert the formula in each cell
    > > which is very lengthy and there are 350 to 400 records every day. Can

    > anyone
    > > provide a simple vb code to trim the ITEMS column.
    > >
    > >

    >
    >
    >


+ 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