nniedzielski
Well-known Member
- Joined
- Jan 8, 2016
- Messages
- 598
- Office Version
- 2019
- Platform
- Windows
I am running a macro to move data from one sheet to another workbook, however, right now when it transfers the info over the column header is also with the data, what can i do to my code to get the column header removed?
VBA Code:
Set wsCopy = Workbooks("New Data.xlsx").Worksheets("Session1")
Set wsDest = Workbooks("Reports.xlsm").Worksheets("All Data")
'Find last used row in the copy range based on data in column A
lCopyLastRow = wsCopy.Cells(wsCopy.Rows.Count, "A").End(xlUp).Row
'Copy & Paste Data
wsCopy.Range("A10:X" & lCopyLastRow).Copy _
wsDest.Range("A" & lDestLastRow)