+ Reply to Thread
Results 1 to 2 of 2

Truncate Cell text all the time

Hybrid View

  1. #1
    Inovic@gmail.com
    Guest

    Truncate Cell text all the time

    I have the need to trucate the contents of my cells regardless of
    whether or not there is content in the adjoining cell. Can anyone tell
    me how to do this?


  2. #2
    Chip Pearson
    Guest

    Re: Truncate Cell text all the time

    You could use code like the following:

    Dim Rng As Range
    For Each Rng In Range("A1:A10")
    If Len(Rng(1,2).Text) <> 0 Then
    Rng.Value = Left(Rng.Text,3) ' truncate to 3
    characters
    End If
    Next Rng


    --
    Cordially,
    Chip Pearson
    Microsoft MVP - Excel
    Pearson Software Consulting, LLC
    www.cpearson.com





    <Inovic@gmail.com> wrote in message
    news:1130431144.542909.41920@g44g2000cwa.googlegroups.com...
    >I have the need to trucate the contents of my cells regardless
    >of
    > whether or not there is content in the adjoining cell. Can
    > anyone tell
    > me how to do this?
    >




+ 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