Though I've managed to get the code to also enter the data from the text boxes into the spreadsheet after its made so yay!
Private Sub CommandButton4_Click()
Dim ws As Worksheet
ActiveWorkbook.Sheets("Template").Copy After:=Sheets(Worksheets.Count)
Set ws = Sheets(Sheets.Count)
If Len(AddStaff.TextBox1 & vbNullString) > 0 Then
ws.Name = AddStaff.TextBox1
Dim iRow As Long
'find first empty row in database
iRow = ws.Cells.Find(What:="*", SearchOrder:=xlRows, _
SearchDirection:=xlPrevious, LookIn:=xlValues).Row + 1
'check for a part number
If Trim(Me.TextBox1.Value) = "" Then
Me.TextBox1.SetFocus
MsgBox "Enter details"
Exit Sub
End If
'copy the data to the database
ws.Cells(iRow, 1).Value = Me.TextBox1.Value
ws.Cells(iRow, 2).Value = Me.TextBox2.Value
ws.Cells(iRow, 3).Value = Me.TextBox3.Value
ws.Cells(iRow, 4).Value = Me.TextBox4.Value
'clear the data
Me.TextBox1.Value = ""
Me.TextBox2.Value = ""
Me.TextBox3.Value = ""
Me.TextBox4.Value = ""
Unload Me
End If
End Sub