Use variables to hold you workbooks and reference those
Dim wb As Workbook , path As String, wbOther As Workbook
path = "workbookpath"
Set wb = Application.Workbooks.Open(path)
Set wbOther = ThisWorkbook
wbOther.Worksheets("Sheet1").Range("A1") = wb.Worksheets("Sheet1").Range("A1")
No comments:
Post a Comment