A textbox contains, per definition, text. You can regulate what kind of text is entered using validations in various events (textbox1_change, textbox1_exit). Alternatively, you can use some custom controls: Calendar control, DateTimePicker control, which have the validations already built in. Rob
DTPicker is in the collection of Microsoft Windows Common Controls. Establish a reference to this library using (from VBE) tools - references, and checking the name of the library. Then, while editing your userform, right-click on the controls toolbox, choose "additional controls", and select "Microsoft Date and Time Picker". This will put an icon for this control in your toolbox, after which you can drag one onto your userform. The use is fairly straightforward - take a look at the available properties and give it a try! Rob
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.