Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Editing date in textbox?
When a date is required in a spreadsheet cell it is real easy to use Data
Validation. But if input is being entered in a Form, one only has a textbox. (I am not interested in any date input control, as nothing is easier to input than simply typing a date.) I don't see any easy way to edit that the date is valid. I am planning to try assigning the input to a date data type and capturing any errors. Is there any other way? Thanks, Don <donwiss at panix.com. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Editing date in textbox?
Hi Don,
You will have to use the 'IsDate' funcion: If IsDate(TextBox1) = False Then MsgBox "Not a valid date." Else MsgBox "Valid date" End If ------------------------------------------------ ~~ Message posted from http://www.ExcelTip.com/ ~~ View and post usenet messages directly from http://www.ExcelForum.com/ |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Editing date in textbox?
On Mon, 22 Sep 2003, zantor wrote:
You will have to use the 'IsDate' funcion: If IsDate(TextBox1) = False Then MsgBox "Not a valid date." Else MsgBox "Valid date" End If Thank you. I was not aware of Isdate. I will try this tomorrow at work, and hope that it exists in Excel 97. Don <donwiss at panix.com. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
TextBox will not clear date??????????? | Excel Discussion (Misc queries) | |||
Textbox date formatting | Excel Discussion (Misc queries) | |||
Textbox to show date | Excel Discussion (Misc queries) | |||
Textbox date format. | Excel Discussion (Misc queries) | |||
Date format textbox | Excel Discussion (Misc queries) |