Hi Guys
I would like to know if there is a quick Macro I could use to rearrange text in a cell.
For example our organisation list all the departments in an unconsistant way and it makes finding the departments hard using A-Z.
For example some department will say "Department of ...", "Dept of ...", Division of ..." or "Div of ...". (Obviously excluding the quotes).
What I wanted to know is this. If you highlight the range you wish to work with, could you use a message box to ask you what text you wish to edit and then automatically search the range and make the changes.
For example search for "Dept of " (note I would need to keep the space after of otherwise I would have leading spaces) so that "Dept of ABC" becomes: "ABC, Dept of" and say "Division of XYZ" becomes "XYZ, Division of"
I would really appreciate the help of a VBA guru to assist me here as this would help me out greatly when search for departments in my drop down list.
Thanks in advance for any help offered.
Bookmarks