+ Reply to Thread
Results 1 to 5 of 5

VBA Code for cutting character lenghts into another cell

  1. #1
    Registered User
    Join Date
    01-29-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    2

    VBA Code for cutting character lenghts into another cell

    I am trying to write a macro for the following: I have one column of data and i want to put a character limit of 45 in each cell in the column. If there are characters that exceed 45 characters i want to cut the excess characters into the right cell in the next column. Some times the cell would have less or more then the characters in it. I have attached a example. I am new to writting Macros and detailed explaination would be great. Thanks in advanced. When the characters are cut, i want to not cut the word in half, i want the whole word.Book1.xlsx

  2. #2
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: VBA Code for cutting character lenghts into another cell

    Maybe this will work

    Please Login or Register  to view this content.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  3. #3
    Registered User
    Join Date
    01-29-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: VBA Code for cutting character lenghts into another cell

    Mike,

    I pluged that in and it works very well. thanks you so much. I was wondering is there a way to not cut the word in half when the character limit is reached. I want the whole word to either in in column a or b.

    Jason

  4. #4
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: VBA Code for cutting character lenghts into another cell

    Try this

    Please Login or Register  to view this content.

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: VBA Code for cutting character lenghts into another cell

    Try this
    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)

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