I got the below code online to copy data from a closed file to another file.
The problem being that the output, the data is copied but formatting disappears...please help
Sub CopyFromClosedWorkbook()
Dim arc As Workbook
Set arc = Workbooks.Open("C:\Users\vipul.lade\Desktop\Finance MIS Automation\Bank.xlsx")
ThisWorkbook.Activate
Worksheets("Data2").Range("A1:I50").Formula = arc.Worksheets("Data2").Range("A1:I50").Formula
The problem being that the output, the data is copied but formatting disappears...please help
Sub CopyFromClosedWorkbook()
Dim arc As Workbook
Set arc = Workbooks.Open("C:\Users\vipul.lade\Desktop\Finance MIS Automation\Bank.xlsx")
ThisWorkbook.Activate
Worksheets("Data2").Range("A1:I50").Formula = arc.Worksheets("Data2").Range("A1:I50").Formula