Hello,
I have the below code which copied cells from Phase3 WP6.xls into another file. It works perfectly when the Phase3 WP6.xls is not open. When I open it before I run the macro it does not work. Could you please help me to change it so it works no matter if the Phase3 WP6.xls is open and used by other users or closed. I would appreciate your help.
Many thanks,
Workbooks.Open Filename:="\\zzz\Phase3 WP6.xls", Password:="gold", ReadOnly:=True
With GetObject("\\zzz\Phase3 WP6.xls")
ThisWorkbook.Sheets("Sheet1").Range("A549:CS550").Value = .Sheets("WP6").Range("A75:CS76").Value
.Close 0
End With
Bookmarks