UserForm including TextBox with date (UK format)
From: John Elink (john_elink_at_hotmail.com)
Date: 11/30/04
- Next message: Bob Phillips: "Re: Cell Colour"
- Previous message: Bob Phillips: "Re: Help with Similar MOD Function Please"
- Next in thread: Bob Phillips: "Re: UserForm including TextBox with date (UK format)"
- Reply: Bob Phillips: "Re: UserForm including TextBox with date (UK format)"
- Messages sorted by: [ date ] [ thread ]
Date: 30 Nov 2004 05:17:28 -0800
Hello
I have database which includes also dates in UK format (dd.mm.yyyy). I
am able to display everything using UserForm with TextBoxes, but dates
are displayed in US format (mm/dd/yyyy).
I am able to change that when I leave the TextBox where is the date
using the following procedure
Private Sub TextBox13_Exit(ByVal Cancel As MSForms.ReturnBoolean)
Dim dt As Date
dt = TextBox13.Text
TextBox13.Text = Format(dt, "dd.mm.yyyy")
End Sub
but the question is - is there some way to display date in UK format
immediately when UserForm with the TextBox including date is
displayed? (after UserForm.Show)? so there is no need to go into the
TextBox with date?
Thanks for the comments
Regards
Johny
- Next message: Bob Phillips: "Re: Cell Colour"
- Previous message: Bob Phillips: "Re: Help with Similar MOD Function Please"
- Next in thread: Bob Phillips: "Re: UserForm including TextBox with date (UK format)"
- Reply: Bob Phillips: "Re: UserForm including TextBox with date (UK format)"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|