This is the code amended, Ossie.
Private Sub CommandButton1_Click()
Dim wsData As Worksheet
Dim r As Long
Set ws = Worksheets("Data") 'Assign worksheet name to a worksheet variable
'Because "With ws" is used prefix all cells with dot as follows
'otherwise requires ws.cells(r, "C") etc
With ws
r = LastRowOrCol(True, .Columns("C:K")) + 1
.Cells(r, "B") = Time() 'Time stamp
.Cells(r, "C") = Me.listGL.Value
.Cells(r, "D") = DateValue(Me.listDate.Value) 'Converts text in the Userform to date format
.Cells(r, "E") = Me.listDepartment.Value
.Cells(r, "F") = Me.listEmployeeNo.Value
.Cells(r, "G") = Me.listEmployee.Value
.Cells(r, "H") = Me.listProjectName.Value
.Cells(r, "I") = Me.listProjectNo.Value
.Cells(r, "J") = Me.listTask1.Value
.Cells(r, "K") = Me.listTask2.Value
.Cells(r, "L") = Me.listTask3.Value
.Cells(r, "m") = Me.listHours.Value
End With
End Sub