The old Roster file had Column "B" = Lastname Column "C" = firstname.
<tbody>
</tbody>
The new file has Column "B" = lastname, firstname.
<tbody>
</tbody>
We want to use the new format so we don't have to maintain two roster file and the new format is not flexable, ... so I need to be.
There are too many versions of "lastname, firstname" eg: Smith, Bob - Smith, Robert - Smith, Bobby, etc. So I asked for last name only
My old code to get their email address was:
Range(emailColumn & FirstRow & ":" & emailColumn & LastRow).Formula = "=VLOOKUP(B2,'" & RosterFileName & "'!roster,5,FALSE)"
I've looked at split and match but have not hit on a clean solution. Any thoughts would be appreciated.
GHIN # | Last Name | First Name |
1910534 | Smith | Bob |
<tbody>
</tbody>
The new file has Column "B" = lastname, firstname.
GHIN # | Name |
1910534 | Smith, Robert |
<tbody>
</tbody>
We want to use the new format so we don't have to maintain two roster file and the new format is not flexable, ... so I need to be.
There are too many versions of "lastname, firstname" eg: Smith, Bob - Smith, Robert - Smith, Bobby, etc. So I asked for last name only
My old code to get their email address was:
Range(emailColumn & FirstRow & ":" & emailColumn & LastRow).Formula = "=VLOOKUP(B2,'" & RosterFileName & "'!roster,5,FALSE)"
I've looked at split and match but have not hit on a clean solution. Any thoughts would be appreciated.