Based on the example workbook you were supposed to post here but posted in your duplicate thread, then:
Private Sub CopyToSheet_Click()
Dim NR As Long
Dim Rws As Long
Dim wsSSS As Worksheet
Dim wsInv As Worksheet
Dim InvRng As Range
Set wsSSS = Sheets("Sales Summary Sheet")
Set wsInv = Sheets("Invoice")
Set InvRng = wsInv.Range("A19:A32").SpecialCells(xlConstants, xlNumbers)
Rws = InvRng.Cells.Count
With wsSSS
NR = .Range("A" & .Rows.Count).End(xlUp).Row + 1
.Range("A" & NR).Resize(Rws).Value = wsInv.Range("H8").Value
.Range("B" & NR).Resize(Rws).Value = wsInv.Range("H7").Value
.Range("C" & NR).Resize(Rws).Value = InvRng.Offset(, 1).Value
.Range("D" & NR).Resize(Rws).Value = InvRng.Value
.Range("G" & NR).Resize(Rws).Value = InvRng.Offset(, 5).Value
.Range("H" & NR).Resize(Rws).Value = InvRng.Offset(, 7).Value
End With
End Sub
Also, in your Module1, these macros simplify down to:
Sub Button27_Click()
Range("A19:B32, F19:F32").Clear
End Sub
Sub Clear()
Range("A19:F32").ClearContents
End Sub
Sub ClearSave()
Call Clear 'you should rename this macro, "clear" is a VBA function, too.
ActiveWorkbook.Save
End Sub
Sub Print2()
ActiveWindow.SelectedSheets.PrintOut From:=1, To:=1, Copies:=2
End Sub
Bookmarks