Sub consolidateData()
Range("B2").Select
ActiveCell.Value = "Indicator No."
Range("C2").Select
ActiveCell.Value = "S.No"
Range("D2").Select
ActiveCell.Value = "Indicator Name"
Range("E2").Select
ActiveCell.Value = "Variable Type"
Range("F2").Select
ActiveCell.Value = "Source of Data"
Range("B3").Select
ActiveCell.Value = "A"
Range("C3").Select
ActiveCell.Value = "S.No"
Range("D3").Select
ActiveCell.Value = "Site Specific Information"
Range("G3").Select
ActiveCell.Value = "April"
Range("B4").Select
ActiveCell.Value = "A(i)"
Range("C4").Select
ActiveCell.Value = "S.No"
Range("D4").Select
ActiveCell.Value = "Govt and PPP"
Range("G4").Select
ActiveCell.Value = "SA-ICTC"
Range("H4").Select
ActiveCell.Value = "F-ICTC"
Range("I4").Select
ActiveCell.Value = "PPP-FICTC"
Range("J4").Select
ActiveCell.Value = "3 Test PPP"
Range("K4").Select
ActiveCell.Value = "Total"
Range("C5").Select
ActiveCell.Value = "1"
Range("D5").Select
ActiveCell.Value = "No. of facilities in the program till last month"
Range("G5").Select
Workbooks.Open Filename:="C:\Users\MAHI\Desktop\Others\MPR\National_MPR_Consolidation\DataBase_MPR\KL-MPR.xlsx"
Workbooks.Open Filename:="C:\Users\MAHI\Desktop\Others\MPR\National_MPR_Consolidation\DataBase_MPR\PY-MPR.xlsx"
Workbooks.Open Filename:="C:\Users\MAHI\Desktop\Others\MPR\National_MPR_Consolidation\DataBase_MPR\TN-MPR.xlsx"
Windows("National-MPR-Consolidation").Activate
Selection.Consolidate Sources:=Array( _
"'C:\Users\MAHI\Desktop\Others\MPR\National_MPR_Consolidation\DataBase_MPR\[KL-MPR.xlsx]MPR_Sec1'!R5C7:R5C7", _
"'C:\Users\MAHI\Desktop\Others\MPR\National_MPR_Consolidation\DataBase_MPR\[PY-MPR.xlsx]MPR_Sec1'!R5C7:R5C7", _
"'C:\Users\MAHI\Desktop\Others\MPR\National_MPR_Consolidation\DataBase_MPR\[TN-MPR.xlsx]MPR_Sec1'!R5C7:R5C7"), Function:=xlSum
Windows("KL-MPR.xlsx").Activate
ActiveWorkbook.Close
Windows("PY-MPR.xlsx").Activate
ActiveWorkbook.Close
Windows("TN-MPR.xlsx").Activate
ActiveWorkbook.Close
End Sub
Bookmarks