Hi David! Here's a custom version of 'Text To Columns' tailored to your needs.
Just paste the code below to a Module (in the VBA editor). The first subroutine (CustomTextToColumns) is the main sub and the 2nd (TestCustomTextToColumns) is the test sub.
To use the test sub, just add a button (or any other control) to your sheet and assign its macro to 'TestCustomTextToColumns'. Then, select a number or rows (single column!) and click the button. If everything's ok then you should see the first 3 tokens of your data pasted
to the neighboring cells.
Originally Posted by
giddne
I have cells with names to use in direct mail. The current format could be
many variations but I only need the first 3 names initials etc. such as John
Doe or John W Doe. I am not interested in anything after that. Putting it
in 3 separate cells would be ideal but 1 or 2 would also be acceptable.
Current formats include all of these:
Doe John
Doe John W
Doe John W JR
Doe John W & Doe Jane R
Appreciate your help. Love this site!!
David
Bookmarks