Dim wb As Workbook
Set wb = Application.Workbooks("Book2.xlsx")
wb.Activate
wb.Sheets("Sheet1").Range("A1").Select
Ps:上面的代码有时可以正常工作,大多数时候会抛出异常
查看此链接 Run Time Error '1004': Select method of Range Class failed using ThisWorkbook我做了与上面相同的操作仍然失败