I've tried many different ideas but none have work. I'm really trying to understand VBA's but it seems I'm strunggling.
Code:
Sub PostToOct_21()
Dim WS1 As Worksheet
Dim WS13 As Worksheet
Set WS1 = Worksheets("Invoice")
Set WS13 = Worksheets("Oct_21")
' figre out which row is the next row
Dim lastRow As Long
'Where is last row of data?
lastRow = Cells(Rows.Count, "A").End(xlUp).Row
'Apply formula
Range("K9:K" & lastRow).Formula = ("=SUM("F9:J9"))
' Write the Important values to Oct_21
WS13.Cells(NextRow, 1).Resize(1, 4).Value = Array(WS1.Range("E3"), WS1.Range("Y2"), WS1.Range("E4"), Range("InvTot"))
Dim rngCopy As Range, rngPaste As Range
With ActiveSheet
Set rngCopy = .Range(.Range("A9:C9"), .Cells(1, Columns.Count).End(xlToLeft))
Set rngPaste = .Range(.Range("A10:C10"), .Cells(Rows.Count, 1).End(xlUp)).Resize(, rngCopy.Columns.Count)
End With
End Sub