We value your feedback.
Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
Sub FileCopy() Dim Rowcount As Integer Dim DataRowCount As Integer 'These 2 lines create variables for your 2 sheets. Set MFile = ThisWorkbook.Worksheets("ShipDoc") 'ActiveWorksheet Set OFile = ThisWorkbook.Worksheets("Template") OFile.Activate Rowcount = Application.CountA(ActiveSheet.Range("B:P")) 'How many rows contain data Rows("2:" & Rowcount).Select Selection.Copy MFile.Activate DataRowCount = Application.CountA(ActiveSheet.Range("B:B")) 'How many rows contain data in this sheet Cells(DataRowCount + 5, 1).Select ActiveSheet.Paste Range("A1").Select End Sub
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.