Your macro is good
Your macro is working
There are no errors in it.
I did test on files enclosed , with this following macro. ( Macro is in sample1.xlsm )
AlanCode:Sub STEP4() Dim w1 As Workbook, w2 As Workbook Set w1 = Workbooks.Open(ThisWorkbook.Path & "\1.xls") ' Workbooks.Open("C:\Users\WolfieeeStyle\Desktop\1.xls") ' change the file path Set w2 = Workbooks.Open(ThisWorkbook.Path & "\FundsCheck.xlsb") ' Workbooks.Open("C:\Users\WolfieeeStyle\Desktop\FundsCheck.xlsb") ' change the file path w1.Worksheets.Item(1).Columns("A:H").Copy w2.Worksheets.Item(1).Columns("A:H").PasteSpecial Paste:=xlPasteValuesAndNumberFormats w2.Save w2.Close w1.Close End Sub
1.xls : https://app.box.com/s/th2xzmkh7rnfr4qf4dho1kpgudndm073




Reply With Quote

Bookmarks