Iemand enig idee waarom onderstaande code steeds in de fout gaat bij PasteSpecial regel?
Code:
Private Sub Verbruik_Ophalen(strFile As String)
Dim strsFile As String
strsFile = ThisWorkbook.Path & "\" & strFile
Workbooks.Open strsFile
Sheets("Verbruik").Select
Range("Verbruik").Select
Application.CutCopyMode = False
Selection.Copy
Selection.Delete Shift:=xlShiftUp
ThisWorkbook.Activate
Sheets("Verbruik").Select
Range("a65536").End(xlUp).Offset(1, 0).Select
ThisWorkbook.Sheets("Verbruik").Range(ActiveCell.Address).PasteSpecial xlPasteValues
Application.CutCopyMode = False
Workbooks(strFile).Close SaveChanges:=True
End Sub