ipbr21054
Well-known Member
- Joined
- Nov 16, 2010
- Messages
- 5,832
- Office Version
- 2007
- Platform
- Windows
I would like a Macro to add 001 after a name.
This will now be a one off press of a button then not used.
Some info for you.
Worksheet called POSTAGE
Column B
Range B8:B881
I now need to add "SPACE 001" no quotes to All the names which do not have 002 003 004 etc after them.
My list at present is like
JOHN SMITH
FRED WINTER
FRED WINTER 002
FRED WINTER 003
ETC ETC
So ONLY looking at names like in my example above JOHN SMITH would be changed to JOHN SMITH 001
FRED WINTER would be changed to FRED WINTER 001
So the new list will then start to look like,
JOHN SMITH 001
FRED WINTER 001
FRED WINTER 002
FRED WINTER 003
ETC ETC
This then sorts out my sheet & the new code we have just sorted will take control of starting with the new 001
Otherwise i need to go through my list and manually add the 001 to every names of which is just text.
Names like BOB JONES 002 will not be touched as it has 002 BUT if there is BOB JONES then please add 001 to it
Many Thanks for your time.
Saved me big time.
This will now be a one off press of a button then not used.
Some info for you.
Worksheet called POSTAGE
Column B
Range B8:B881
I now need to add "SPACE 001" no quotes to All the names which do not have 002 003 004 etc after them.
My list at present is like
JOHN SMITH
FRED WINTER
FRED WINTER 002
FRED WINTER 003
ETC ETC
So ONLY looking at names like in my example above JOHN SMITH would be changed to JOHN SMITH 001
FRED WINTER would be changed to FRED WINTER 001
So the new list will then start to look like,
JOHN SMITH 001
FRED WINTER 001
FRED WINTER 002
FRED WINTER 003
ETC ETC
This then sorts out my sheet & the new code we have just sorted will take control of starting with the new 001
Otherwise i need to go through my list and manually add the 001 to every names of which is just text.
Names like BOB JONES 002 will not be touched as it has 002 BUT if there is BOB JONES then please add 001 to it
Many Thanks for your time.
Saved me big time.