Sub uren_invoeren_hand2()
Dim wsFrom As Worksheet, wsTo As Worksheet
Application.ScreenUpdating = False
Application.DisplayAlerts = False
Set wsFrom = Workbooks("Urenregistratie.xls").Worksheets("invoerenuren")
Set wsTo = Workbooks("kleur.xls").Worksheets("Materiaal")
With wsFrom
.[H13].Copy
wsTo.Cells(Rows.Count, 24).End(xlUp).Offset(1).PasteSpecial Paste:=xlPasteValues
.[H14].Copy
wsTo.Cells(Rows.Count, 22).End(xlUp).Offset(1).PasteSpecial Paste:=xlPasteValues
.[H15].Copy
wsTo.Cells(Rows.Count, 19).End(xlUp).Offset(1).PasteSpecial Paste:=xlPasteValues
.[H16].Copy
wsTo.Cells(Rows.Count, 20).End(xlUp).Offset(1).PasteSpecial Paste:=xlPasteValues
.[H17].Copy
wsTo.Cells(Rows.Count, 18).End(xlUp).Offset(1).PasteSpecial Paste:=xlPasteValues
End With
[H12:H17].ClearContents
Windows("kleur.xls").Activate
[Q1:X65536].Sort Key1:=[Q2], Key2:=[R2], Key3:=[S2], Order1:=xlAscending, Header:= _
xlGuess, OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal
Workbooks("kleur.xls").Close Savechanges:=True
Application.ScreenUpdating = True
Application.DisplayAlerts = True
End Sub