S
Sandy
Excel 2003
I have the following which fails with Runtime error 438 at the asterisked
line.
Both books are open but both sheets in OldBook and NewBook are hidden.
Thanks
Sandy
Windows(OldBook).Activate
With Workbooks(OldBook).Sheets("RecordOfRounds")
Lr = .Range("A65536").End(xlUp).Row
.Unprotect Password:="xxxxx"
.Range("A53:GM" & Lr).Copy
.Protect Password:="xxxxx"
End With
Windows(NewBook).Activate
With Workbooks(NewBook).Sheets("RecordOfRounds")
.Unprotect Password:="xxxxx"
.Range("A53").Paste '*************************
.Protect Password:="xxxxx"
End With
I have the following which fails with Runtime error 438 at the asterisked
line.
Both books are open but both sheets in OldBook and NewBook are hidden.
Thanks
Sandy
Windows(OldBook).Activate
With Workbooks(OldBook).Sheets("RecordOfRounds")
Lr = .Range("A65536").End(xlUp).Row
.Unprotect Password:="xxxxx"
.Range("A53:GM" & Lr).Copy
.Protect Password:="xxxxx"
End With
Windows(NewBook).Activate
With Workbooks(NewBook).Sheets("RecordOfRounds")
.Unprotect Password:="xxxxx"
.Range("A53").Paste '*************************
.Protect Password:="xxxxx"
End With