ser form question

G

Gareth

I use an input box to get a date into cell D10 on sheet1

Later on the user will display an user form which contains a text box that I
want the date to be displayed in. I have tried putting it in the control
source but the date is American.

Is there any way to display the date in the follwowing format:

dd/mm/yyyy

Thanks in advance.

Gareth
 
R

Ron de Bruin

Private Sub UserForm_Initialize()
Me.TextBox1 = Format(Sheets("Sheet1").Range("a1").Value, _
"dd-mm-yy")
End Sub

Try this
 

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

Top