I have a simple vba code that works absolutely fine, it copies data from one Workbook 1 column A and pastes it into Workbook 2 column A.
Problem is workbook 1 is updated weekly and the data in some cells in column A change and I do not want the original data copied over to Workbook 2 to be over written every time the vba is run.
I need some help writing some vba that will copy over only new data from workbook1 and not delete data already previously copied over into Workbook2 ( ie: Workbook 2 Column A will just get longer and longer)
Hopefully I have explained it well enough so you can understand.
Sub CopyColumnToWorkbook()
Dim sourceColumn As Range, targetColumn As Range
Set sourceColumn = Workbooks("Bought-Out-Part Orders.xlsx").Worksheets("Live").Columns("A")
Set targetColumn = Workbooks("BOP Orders.xlsm").Worksheets("Sheet3").Columns("A")
sourceColumn.Copy Destination:=targetColumn
End Sub
Problem is workbook 1 is updated weekly and the data in some cells in column A change and I do not want the original data copied over to Workbook 2 to be over written every time the vba is run.
I need some help writing some vba that will copy over only new data from workbook1 and not delete data already previously copied over into Workbook2 ( ie: Workbook 2 Column A will just get longer and longer)
Hopefully I have explained it well enough so you can understand.
Sub CopyColumnToWorkbook()
Dim sourceColumn As Range, targetColumn As Range
Set sourceColumn = Workbooks("Bought-Out-Part Orders.xlsx").Worksheets("Live").Columns("A")
Set targetColumn = Workbooks("BOP Orders.xlsm").Worksheets("Sheet3").Columns("A")
sourceColumn.Copy Destination:=targetColumn
End Sub