- Local time
- Today, 09:00
- Joined
- Feb 28, 2001
- Messages
- 30,104
Technically, that embedded "-" makes the whole thing a string anyway. You could have just removed all spaces before exiting the subroutine using the Replace function outside of the big IF ladder but before the Exit Sub (or End Sub).
Code:
GetPriorPayPeriod = Replace( GetPriorPayPeriod, " ", "" )
