renraw9002
New Member
- Joined
- Jun 20, 2024
- Messages
- 15
- Office Version
- 365
- Platform
- Windows
I have multiple userforms for a spreadsheet and some textboxes require time entry. We always write time using hhmm and using 4 digits. I'm not really worried about people accidentally typing in letters or using 3 numbers or anything like that. I'd just like it so that when people type 0123, 1234, etc it will automatically insert a : between the second and third numbers.
If there isn't a simple way to just automatically insert the colon between the 2nd and 3rd numbers is there a simple code I can put in to check the textbox for a colon and if it's missing, alert the user to insert one and try hitting save again?
If there isn't a simple way to just automatically insert the colon between the 2nd and 3rd numbers is there a simple code I can put in to check the textbox for a colon and if it's missing, alert the user to insert one and try hitting save again?