Kmahraz
Member
Hey guys,
looking for a way to copy several columns in different sheets from one work book to another.
The columns contain formulas that i would like to keep; but they need to reference the new destination work book and not the source.
Also I would like to keep the format if possible.
Private Sub CommandButton1_Click()
Dim sourceColumn As Range, targetColumn As Range
Set sourceColumn = Workbooks("Chandoo 1st post.xls").Worksheets("Asia Prices from PUZJ").Columns("AC")
Set targetColumn = Workbooks("KM-test 2.xls").Worksheets("Asia Prices from PUZJ").Columns("AC")
sourceColumn.Copy Destination:=targetColumn
End Sub
looking for a way to copy several columns in different sheets from one work book to another.
The columns contain formulas that i would like to keep; but they need to reference the new destination work book and not the source.
Also I would like to keep the format if possible.
Private Sub CommandButton1_Click()
Dim sourceColumn As Range, targetColumn As Range
Set sourceColumn = Workbooks("Chandoo 1st post.xls").Worksheets("Asia Prices from PUZJ").Columns("AC")
Set targetColumn = Workbooks("KM-test 2.xls").Worksheets("Asia Prices from PUZJ").Columns("AC")
sourceColumn.Copy Destination:=targetColumn
End Sub