Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
date code
How to tell a Textbox(on a userform) and the user to enter date value in
"dd/mm/yy" format. -- Message posted via http://www.officekb.com |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
date code
Dim v As Variant
Do v = InputBox("Enter a date") If StrPtr(v) = 0 Then Exit Sub Loop While Not IsDate(v) Me.TextBox1.Text = Format(v, "dd/mm/yy") -- Tim Zych www.higherdata.com Compare data in worksheets and find differences with Workbook Compare A free, powerful, flexible Excel utility "tkraju via OfficeKB.com" <u16627@uwe wrote in message news:85202c0024350@uwe... How to tell a Textbox(on a userform) and the user to enter date value in "dd/mm/yy" format. -- Message posted via http://www.officekb.com |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
date code
Mr.Tim,
Can this code be used for a TextBox in A userform ? Where are messages ? where to insert the code? Tim Zych wrote: Dim v As Variant Do v = InputBox("Enter a date") If StrPtr(v) = 0 Then Exit Sub Loop While Not IsDate(v) Me.TextBox1.Text = Format(v, "dd/mm/yy") How to tell a Textbox(on a userform) and the user to enter date value in "dd/mm/yy" format. -- Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...mming/200806/1 |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
date code
Check out:
http://www.contextures.com/xlUserForm01.html -- Tim Zych www.higherdata.com Compare data in worksheets and find differences with Workbook Compare A free, powerful, flexible Excel utility "tkraju via OfficeKB.com" <u16627@uwe wrote in message news:8521c019e1429@uwe... Mr.Tim, Can this code be used for a TextBox in A userform ? Where are messages ? where to insert the code? Tim Zych wrote: Dim v As Variant Do v = InputBox("Enter a date") If StrPtr(v) = 0 Then Exit Sub Loop While Not IsDate(v) Me.TextBox1.Text = Format(v, "dd/mm/yy") How to tell a Textbox(on a userform) and the user to enter date value in "dd/mm/yy" format. -- Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...mming/200806/1 |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
date code
this is not what I want.I want to enter date value in textbox directly in
dd/mm/yy format.Textbox has to accept the date value what I mean entering the date value. If I enter today's date as 05/06/08(means 5thJune2008) it should not be converted into 6thMay2008. No input box,entry directly in Textbox. Tim Zych wrote: Check out: http://www.contextures.com/xlUserForm01.html Mr.Tim, Can this code be used for a TextBox in A userform ? [quoted text clipped - 9 lines] How to tell a Textbox(on a userform) and the user to enter date value in "dd/mm/yy" format. -- Message posted via http://www.officekb.com |
#6
Posted to microsoft.public.excel.programming
|
|||
|
|||
date code
Check out
http://www.cpearson.com/excel/newposte.htm It will help you in constructing a post so that you have a better chance in getting the response you are looking for. -- Tim Zych www.higherdata.com Compare data in worksheets and find differences with Workbook Compare A free, powerful, flexible Excel utility "tkraju via OfficeKB.com" <u16627@uwe wrote in message news:853aa5d4351ef@uwe... this is not what I want.I want to enter date value in textbox directly in dd/mm/yy format.Textbox has to accept the date value what I mean entering the date value. If I enter today's date as 05/06/08(means 5thJune2008) it should not be converted into 6thMay2008. No input box,entry directly in Textbox. Tim Zych wrote: Check out: http://www.contextures.com/xlUserForm01.html Mr.Tim, Can this code be used for a TextBox in A userform ? [quoted text clipped - 9 lines] How to tell a Textbox(on a userform) and the user to enter date value in "dd/mm/yy" format. -- Message posted via http://www.officekb.com |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Code to conditional format all black after date specified in code? | Excel Discussion (Misc queries) | |||
Strange? VBA code returns wrong date format (not a date) | Excel Programming | |||
Convert a julian gregorian date code into a regular date | Excel Worksheet Functions | |||
code to convert date from TEXT format (03-02) to DATE format (200203) | Excel Programming | |||
code pasting a date changes date format in current month only | Excel Programming |