Good afternoon, in the code below the commented out lines are what I had hoped would work but result in this:-
At the moment, I'm having to settle for the rest.
What can I do to stop 'having to' "Activate"?
Many thanks,
D€$
"Run-time error '438':
Object doesn't support this property or method"
At the moment, I'm having to settle for the rest.
Code:
Sub MARPROV_Values()
Dim x As Integer
For x = 3 To 58
Application.ScreenUpdating = False
Windows("MARPROV.xls").Activate
'' Windows("MARPROV.xls").Sheets(x).Range("J11:W11").Copy
Sheets(x).Range("J11:W11").Copy
Windows("MARPROV Template.xls").Activate
'' ActiveWorkbook.Sheets(x).Range("J11").PasteSpecial (xlPasteValues)
Sheets(x).Range("J11").PasteSpecial (xlPasteValues)
Next x
Application.ScreenUpdating = True
End Sub
What can I do to stop 'having to' "Activate"?
Many thanks,
D€$