I'm trying to write a macro which will copy data from one spreadsheet to another spreadsheet within the same workbook using Marco assigned to a active control button. Also, I would the button to clear the data from fields after copying to the other sheet. However, I'm struggling to Debug this code. Can anyone offer assistance?
Private Sub CommandButton1_Click()
    Dim OrderDate As String, Job As String, AccountManager As String
    Dim Site As String, DueDate As String, BudgetedHours As String
    `enter code here`Supervisor As String
    Dim TotalPieces As String, Billedhours As String, UnitsCompleted As String
    Dim EmployeeName As String, Task As String
    Dim StartTime As String, FinishTime As String, TotalTime As String
    Dim Notes As String
    Worksheets("Assembly Work Form").Select
    Date = Range("B3")
    Job = Range("B4")
    CustomerName = Range("B5")
    AccountManager = Range("B7")
    Supervisor = Range("B8")
    Site = Range("B9")
    DueDate = Range("B10")
    BudgetedHours = Range("B11")
    TotalPieces = Range("F5")
    Billedhours = Range("F3")
    UnitsCompleted = Range("F6")
    EmployeeName = Range("B15")
    Task = Range("B15")
    StartTime = ("E17")
    FinishTime = ("G17")
    TotalTime = ("I17")
    Notes = Range("K17")
    Worksheets("AssemblyTotals").Select
    Worksheets("AssemblyTotals").Range("A2").Select
    If Worksheets("AssemblyTotals").Range("A3").Offset("1,0") <> "" Then
        Worksheets("AssemblyTotals").Range("A2").End(xlDown).Select
    End If
    ActiveCell.Offset(1, 0).Select
    ActiveCell.Value = Date
    ActiveCell.Offset(0, 1).Select
    ActiveCell.Value = Job
    ActiveCell.Offset(-1, 0).Select`enter code here`
    ActiveCell.Value = CustomerName
    Worksheets("Assembly Work Form").Select
    Worksheets("Assembly Work Form").Range("DataFields").ClearContents
End Sub
 
     
    