Oliver Dewar
Board Regular
- Joined
- Apr 17, 2011
- Messages
- 201
Simple question (not sure if the script will be though!)
I need to remove any spaces that may appear either as the first or last character entered in a textbox on a userform.
I'll put the script into the exit event.
Note: the user may well not enter a space as the first or last character. This is just to clip the value back to words with only internal spaces so that the value can be cross referrenced against our database. At the moment a stray space will cause a duplicate to get past our checks and destroy the world (yes, the stakes are high on this one...)
Cheers!
I need to remove any spaces that may appear either as the first or last character entered in a textbox on a userform.
I'll put the script into the exit event.
Note: the user may well not enter a space as the first or last character. This is just to clip the value back to words with only internal spaces so that the value can be cross referrenced against our database. At the moment a stray space will cause a duplicate to get past our checks and destroy the world (yes, the stakes are high on this one...)
Cheers!