Hi,
This might help. Assumes you run the code while in the workbook
dagrapport-week-52.xls
Sub Copy()
Range("P389:P390").Copy
Workbooks("afrekening december2006.xls").Activate
Range("E6:F6").Select
Selection.PasteSpecial Paste:=xlPasteValues, Transpose:=True
Application.CutCopyMode = False
End Sub
or without activating afrekening december2006.xls
Sub Copy1()
Range("P389:P390").Copy
Workbooks("afrekening december2006.xls").Sheets("sheet1").Range("E6:F6") _
.PasteSpecial Paste:=xlPasteValues, Transpose:=True
Application.CutCopyMode = False
End Sub
VBA Noob
Bookmarks