Hi
I want to create a function to take a string of text e.g. "<surname>, <first name>" and be able to locate the <surname> i.e. characters before the comma and <first name> i.e. characters after the space after the comma and reverse them so that the output result will read <first name> <surname>.
Examples:
Input: "Smith, John" Expected Output: "John Smith"
Input: "Wilson, Alfred" Expected Output: "Alfred Wilson"
I can do this in an Excel formula. However, when I try and apply the same logic in a macro it does not like it.
Any help with this much appreciated
Peter
I want to create a function to take a string of text e.g. "<surname>, <first name>" and be able to locate the <surname> i.e. characters before the comma and <first name> i.e. characters after the space after the comma and reverse them so that the output result will read <first name> <surname>.
Examples:
Input: "Smith, John" Expected Output: "John Smith"
Input: "Wilson, Alfred" Expected Output: "Alfred Wilson"
I can do this in an Excel formula. However, when I try and apply the same logic in a macro it does not like it.
Any help with this much appreciated
Peter