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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Date format textbox 2
Textbox date format. 2
Date format textbox? 2
Change colour of font in a textbox? 2
TextBox will not clear date??????????? 4
Date / Time problem 4
Date Format 3
Setting the date format 2

Top