Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Format a Userform Textbox Properties

How do I set the properties of a textbox in a suerform to accept a date only?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,202
Default Format a Userform Textbox Properties

How do I set the properties of a textbox in a suerform to
accept a date only?


Instead of using a TextBox, why not consider using a Microsoft Date and Time
Picker control. It is a combo box like control with a text area pre-filled
in with a date whose month, day and year fields can be visited and changed
via the arrow keys or by typing in value for each of them. In addition,
clicking the down arrow pops up a calendar's month view where your user can
pick the date from.

To add one to your UserForm's Toolbox, right click a blank area of the
UserForm's Toolbox and select "Additional Controls" from the popup menu that
appears. Scroll down until you find an item that says "Microsoft Date and
Time Picker Control" and place a checkmark next to it; then hit OK. Now,
select the DTPicker (what the control is called in its ToolTip) control that
was added to the Toolbox and place it on the UserForm. The size of the month
display is controlled by the Font Size used.

Rick

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Format TextBox on UserForm ryguy7272 Excel Programming 7 August 5th 07 03:46 PM
Date Format in UserForm textbox. [email protected] Excel Programming 0 July 6th 07 03:52 PM
TextBox in UserForm with 24h time format Mika Excel Programming 1 February 1st 05 07:45 PM
format textbox in userform jeffP Excel Programming 1 January 25th 05 01:10 AM
Format of a TextBox in a userform MD Excel Programming 4 January 13th 05 05:42 PM


All times are GMT +1. The time now is 09:53 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"