Hello,
I have a column of characters/numbers. Each cell always has a 3 number string somewhere in the cell. I would like a vba that will add a dash before and after this string. Example: hdi2n340B13 should look like hdi2n-340-B13.
Thanks,
E
Hello,
I have a column of characters/numbers. Each cell always has a 3 number string somewhere in the cell. I would like a vba that will add a dash before and after this string. Example: hdi2n340B13 should look like hdi2n-340-B13.
Thanks,
E
Last edited by enhydra; 03-17-2017 at 07:38 PM.
try this macro. You'll have to change the column the macro works on (actually column A)
Please Login or Register to view this content.
Pierre Leclerc
_______________________________________________________
If you like the help you got,
Click on the STAR "Add reputation" icon at the bottom.
Damn, that's cool. Works great. I didn't even have a clue where to start. You're a genius. Thanks much.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks