userform textbox data validation

dhoffman

New Member
Joined
Apr 1, 2002
Messages
29
Maybe I'm stupid but there doesn't seem to be any property for textboxes on userforms that allows one to set up an input mask or some sort of automatic data validation. Do I really need to use code to check the format of the data entered into the textbox?
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Hi
Right click on your forms toolbox, in VBA development environment, choose additional controls...
Look for Microsoft Masked Edit Control
The file name this refers to,if you have it, is in your system folder namely MSMASK32.ocx
This is basically an upgraded textbox which will allow you to pre-format the expected data with a developer defined mask.
If not, use code...
If it's legal, I'll email you the activeX control?
Tom
 
Upvote 0
Thanks, I checked it out and that control is available to me. I never thought to look at
'additional controls.'
 
Upvote 0
Just had a look at this in my copy of Excel and the control is there but if I try to use it I get a message saying that the component is not licensed properly.

What's all that about then?
 
Upvote 0

Forum statistics

Threads
1,214,611
Messages
6,120,509
Members
448,967
Latest member
screechyboy79

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top