[Urgent] Cut sentence at 40 char w/o distorting words

dotchin

New Member
Joined
Nov 30, 2014
Messages
2
Hello,


I need urgent help here and thank you for viewing and probably assist me in my Excel VBA problem.


Basically I have a database of sentences within the same cell that:
1)needs to be cut with max of 40 characters (without distorting the words on the 40th character)
2)Slot them back into the next few rows depending on how many characters (most no. of char I have up till now is 120 within the same cell)
3) rename the line number to reflect the latest changes
4) Re-do the same steps for all the lines and reflect the correct Process no. and Line no.


All these are shown below:


Before:
362058d1417369090-urgent-cut-a-sentence-with-max-40-char-capture.jpg


After:
362059d1417369091-urgent-cut-a-sentence-with-max-40-char-capture2.jpg



Can someone create the Excel VBA code to automate these changes?

Thank you so much for your help!
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney

Forum statistics

Threads
1,215,988
Messages
6,128,142
Members
449,426
Latest member
revK

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top