1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
| Private Sub DL_M01_Click()
Sheets("MOIS-MAAND").Range("D2:F300").ClearContents
Workbooks.Open Filename:= _
"\\spvfilebru020.intra.just.fgov.be\Services\ACA\Budget\Dir-Budget\Cel-Bud\#Tabl_MonitoringPersonnel-Tab_MonitoringPersoneel\#DATA_2017\extract_SAP\Janvier_CD.XLSX"
Range("A2:C200").Select
Selection.Copy
ThisWorkbook.Activate
Sheets("MOIS-MAAND").Activate
Range("D1048576").End(xlUp).Offset(1, 0).PasteSpecial Paste:=xlPasteValues, Operation _
:=xlNone, SkipBlanks:=False, Transpose:=False
Call ClearClipboard
Workbooks.Open Filename:= _
"\\spvfilebru020.intra.just.fgov.be\Services\ACA\Budget\Dir-Budget\Cel-Bud\#Tabl_MonitoringPersonnel-Tab_MonitoringPersoneel\#DATA_2017\extract_SAP\Janvier_CV.XLSX"
Range("A2:C200").Select
Selection.Copy
ThisWorkbook.Activate
Sheets("MOIS-MAAND").Activate
Range("D1048576").End(xlUp).Offset(1, 0).PasteSpecial Paste:=xlPasteValues, Operation _
:=xlNone, SkipBlanks:=False, Transpose:=False
Call ClearClipboard
Workbooks.Open Filename:= _
"\\spvfilebru020.intra.just.fgov.be\Services\ACA\Budget\Dir-Budget\Cel-Bud\#Tabl_MonitoringPersonnel-Tab_MonitoringPersoneel\#DATA_2017\extract_SAP\Janvier_121199_122148_CV.XLSX"
Range("A2:C200").Select
Selection.Copy
ThisWorkbook.Activate
Sheets("MOIS-MAAND").Activate
Range("D1048576").End(xlUp).Offset(1, 0).PasteSpecial Paste:=xlPasteValues, Operation _
:=xlNone, SkipBlanks:=False, Transpose:=False
Call ClearClipboard
Workbooks.Open Filename:= _
"\\spvfilebru020.intra.just.fgov.be\Services\ACA\Budget\Dir-Budget\Cel-Bud\#Tabl_MonitoringPersonnel-Tab_MonitoringPersoneel\#DATA_2017\extract_SAP\Janvier_121199_122148_CD.XLSX"
Range("A2:C200").Select
Selection.Copy
ThisWorkbook.Activate
Sheets("MOIS-MAAND").Activate
Range("D1048576").End(xlUp).Offset(1, 0).PasteSpecial Paste:=xlPasteValues, Operation _
:=xlNone, SkipBlanks:=False, Transpose:=False
Call ClearClipboard
MsgBox ("Données exportées")
Windows("Janvier_CD.XLSX").Close
Windows("Janvier_CV.XLSX").Close
Windows("Janvier_121199_122148_CD.XLSX").Close
Windows("Janvier_121199_122148_CV.XLSX").Close
Sheets("MOIS-MAAND").Range("D1").Activate
List_M.Show 0
End Sub |
Partager