I have 90-120 character strings in Column A. I need Column B to take the first 40 whole word characters and Column C to take the remaining characters up to 800.
I have been researching a solution to this problem and everything I have seen has been slightly off from what I am looking for. I am trying to do this in VBA to stream line the process because I have 30 Spreadsheets each with over 1500 lines.
Example of what I need:
[TABLE="width: 1757"]
<tbody>[TR]
[TD]Column A: Original Message[/TD]
[TD]Column B: First 40 Characters[/TD]
[TD]Column C: Remaining Characters[/TD]
[TD]Len (A)[/TD]
[TD]Len (B)[/TD]
[TD]Len (C )[/TD]
[/TR]
[TR]
[TD]Thank you for registering at the MrExcel Message Board. Before we can activate your account one last step.[/TD]
[TD]Thank you for registering at the MrExcel[/TD]
[TD]Message Board. Before we can activate your account one last step.[/TD]
[TD="align: right"]106[/TD]
[TD="align: right"]40[/TD]
[TD="align: right"]65[/TD]
[/TR]
[TR]
[TD]Please be sure not to add extra spaces. You will need to type in your username and activation number on the page.[/TD]
[TD]Please be sure not to add extra spaces.[/TD]
[TD]You will need to type in your username and activation number on the page.[/TD]
[TD="align: right"]113[/TD]
[TD="align: right"]40[/TD]
[TD="align: right"]73[/TD]
[/TR]
</tbody>[/TABLE]
I have been researching a solution to this problem and everything I have seen has been slightly off from what I am looking for. I am trying to do this in VBA to stream line the process because I have 30 Spreadsheets each with over 1500 lines.
Example of what I need:
[TABLE="width: 1757"]
<tbody>[TR]
[TD]Column A: Original Message[/TD]
[TD]Column B: First 40 Characters[/TD]
[TD]Column C: Remaining Characters[/TD]
[TD]Len (A)[/TD]
[TD]Len (B)[/TD]
[TD]Len (C )[/TD]
[/TR]
[TR]
[TD]Thank you for registering at the MrExcel Message Board. Before we can activate your account one last step.[/TD]
[TD]Thank you for registering at the MrExcel[/TD]
[TD]Message Board. Before we can activate your account one last step.[/TD]
[TD="align: right"]106[/TD]
[TD="align: right"]40[/TD]
[TD="align: right"]65[/TD]
[/TR]
[TR]
[TD]Please be sure not to add extra spaces. You will need to type in your username and activation number on the page.[/TD]
[TD]Please be sure not to add extra spaces.[/TD]
[TD]You will need to type in your username and activation number on the page.[/TD]
[TD="align: right"]113[/TD]
[TD="align: right"]40[/TD]
[TD="align: right"]73[/TD]
[/TR]
</tbody>[/TABLE]