![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: May 2002
Posts: 4
|
Hello,
I am trying to format a textbox to display a date as 05/10/02, but it covert it to the excel numbering of dates 46232 how do I change this .....Thanks |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Feb 2002
Posts: 7,743
|
JG,
I've been trying to replicate your problem with the text box and can't seem to get Excel to express the date as 46232. Are you using the text box from the Drawing toolbar? |
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Sydney, Australia
Posts: 2,908
|
Hi,
What's your code? You can use something like this but it depends on how your form is set up:- Private Sub TextBox1_AfterUpdate() Me.TextBox1.Text = Format(Me.TextBox1.Text, "mm/dd/yy") End Sub Regards, Dan |
|
|
|
|
|
#4 |
|
New Member
Join Date: May 2002
Posts: 4
|
Maybe thats my problem I haven't written any code could someone give me a basic example of formatting a textbox .....Thanks
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|