michaeltsmith93
Board Regular
- Joined
- Sep 29, 2016
- Messages
- 83
The format of Application.UserName for people at my company is "Last, First". As a result, I've written a few lines that translate this to "First Last" and called it "FirstLast". I've used FirstLast throughout my code, but I'm now using the sheet with folks at another company whose UserName is already in format "First Last". Is there any way to get around writing an If Then Else statement (i.e., If InStr(1, Application.UserName, ",")) and putting my current code with "FirstLast" as the Then and copying and pasting my code and replacing "FirstLast" with Application.UserName in the Else? I see the same potential problem with Select Case.