S
Steve Jones
I am having a problem transferring a date from a userform to a worksheet in
Excel 2003
This is an extract of the code I am using to enter data from the userform to
the worksheet.
Dim irow As Long
Dim ws As Worksheet
Set ws = Worksheets("Wagedata")
' finds first empty row in database
irow = ws.Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).Row
ws.Cells(irow, 1).Value = Me.Cmbempno.Value
ws.Cells(irow, 2).Value = Me.Txtempname.Value
ws.Cells(irow, 3).Value = Me.TxtFrmcd.Value
ws.Cells(irow, 4).Value = Me.TxtDate.Value ' date not being entered in the
format required
All works as it should except I want the date displayed in DD/MM/YY format
on the worksheet rather than MM/DD/YY.
Thanks
Excel 2003
This is an extract of the code I am using to enter data from the userform to
the worksheet.
Dim irow As Long
Dim ws As Worksheet
Set ws = Worksheets("Wagedata")
' finds first empty row in database
irow = ws.Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).Row
ws.Cells(irow, 1).Value = Me.Cmbempno.Value
ws.Cells(irow, 2).Value = Me.Txtempname.Value
ws.Cells(irow, 3).Value = Me.TxtFrmcd.Value
ws.Cells(irow, 4).Value = Me.TxtDate.Value ' date not being entered in the
format required
All works as it should except I want the date displayed in DD/MM/YY format
on the worksheet rather than MM/DD/YY.
Thanks