Private Sub btnOkay_Click()
Dim LastRow As Long
'Adds 1 to get to the Row following the last populated Row
LastRow = Worksheets("2014").Cells(Rows.Count, 1).End(xlUp).Offset(1)
Worksheets("2014").Range("D" & LastRow).Value = tbNetSales.Value
Worksheets("2014").Range("G" & LastRow).Value = tbDiscounts.Value
Worksheets("2014").Range("P" & LastRow).Value = tbCreditCards.Value
End Sub
This is my most current code.
Worksheets("2014").Range("D" & LastRow).Value = tbNetSales.Value
This is the line that presents the error. The error is
Application-defined or object-defined error.
Bookmarks