Date format of a textbox

T

Tdp

Help me please!!!
I'v tried different codes but none seem to work.........Grrrrrrrrrrrrrr!!
I have a UserForm1 which in TextBox1 should display a date which it gets it
from Sheet2 cell "D2". I'm trying to format it to 14 October 2008, ( I think
dd-mmm-yyyy")
Can anybody help?
 
J

John C

What are you getting?
In formatting if you want the full month to display, you need 4 m's, not 3.
1m = the month number, i.e.: 7, 8, 9, 10,
2m = the month number, but always 2 digits, i.e: 07, 08, 09, 10
3m = abbreviated month, i.e.: Jul, Aug, Sep, Oct
4m = full month name
And if you want spaces, formatting would be: dd mmmm yyyy
 
B

Beck

Tdp said:
Help me please!!!
I'v tried different codes but none seem to work.........Grrrrrrrrrrrrrr!!
I have a UserForm1 which in TextBox1 should display a date which it gets it
from Sheet2 cell "D2". I'm trying to format it to 14 October 2008, ( I think
dd-mmm-yyyy")
Can anybody help?
 
T

Tdp

Formatting the cell works fine but the textbox on the userform keeps giving
me mm/dd/yyyy.
 
Top