Hi, I have got the below script working all the way through to wkb6.Close SaveChanges:=False it closes all up to this point, but I can't work out why it is stopping at this one. Please help</SPAN>
Public Sub Update_Ref()</SPAN>
Dim lngCalc As XlCalculation</SPAN>
Dim wkb1 As Excel.Workbook, wkb2 As Excel.Workbook, wkb3 As Excel.Workbook, wkb4 As Excel.Workbook, wkb5 As Excel.Workbook, wkb6 As Excel.Workbook, wkb7 As Excel.Workbook, wkb8 As Excel.Workbook</SPAN>
With Application</SPAN>
.ScreenUpdating = False</SPAN>
lngCalc = .Calculation</SPAN>
.Calculation = xlManual</SPAN>
.EnableEvents = False</SPAN>
.EnableCancelKey = xlErrorHandler</SPAN>
End With</SPAN>
On Error GoTo proc_End</SPAN>
Set wkb1 = Workbooks.Open("https://celcombluenet.celcom.com.my/division/Sales/Shared%20Folder/Training%20Management%20Tool%20Central.xlsm")</SPAN>
Set wkb2 = ThisWorkbook</SPAN>
Set wkb3 = Workbooks.Open("https://celcombluenet.celcom.com.my/division/Sales/Shared%20Folder/Training%20Management%20Tool%20HQ.xlsm")</SPAN>
Set wkb4 = Workbooks.Open("https://celcombluenet.celcom.com.my/division/Sales/Shared%20Folder/Training%20Management%20Tool%20Eastern.xlsm")</SPAN>
Set wkb5 = Workbooks.Open("https://celcombluenet.celcom.com.my/division/Sales/Shared%20Folder/Training%20Management%20Tool%20Northern.xlsm")</SPAN>
Set wkb6 = Wrokbooks.Open("https://celcombluenet.celcom.com.my/division/Sales/Shared%20Folder/Training%20Management%20Tool%20Southern.xlsm")</SPAN>
Set wkb7 = Workbooks.Open("https://celcombluenet.celcom.com.my/division/Sales/Shared%20Folder/Training%20Management%20Tool%2Sabah.xlsm")</SPAN>
Set wkb8 = Workbooks.Open("https://celcombluenet.celcom.com.my/division/Sales/Shared%20Folder/Training%20Management%20Tool%20Sarawak.xlsm")</SPAN>
Call wkb2.Sheets("Ref").Range("A1:F2210").Copy</SPAN>
Call wkb1.Sheets("Ref").Range("A1").PasteSpecial(Paste:=xlValues)</SPAN>
Call wkb3.Sheets("Ref").Range("A1").PasteSpecial(Paste:=xlValues)</SPAN>
Call wkb4.Sheets("Ref").Range("A1").PasteSpecial(Paste:=xlValues)</SPAN>
Call wkb5.Sheets("Ref").Range("A1").PasteSpecial(Paste:=xlValues)</SPAN>
Call wkb6.Sheets("Ref").Range("A1").PasteSpecial(Paste:=xlValues)</SPAN>
Call wkb7.Sheets("Ref").Range("A1").PasteSpecial(Paste:=xlValues)</SPAN>
Call wkb8.Sheets("Ref").Range("A1").PasteSpecial(Paste:=xlValues)</SPAN>
Application.CutCopyMode = False</SPAN>
proc_End:</SPAN>
With Application</SPAN>
.ScreenUpdating = True</SPAN>
.Calculation = lngCalc</SPAN>
.EnableEvents = True</SPAN>
.EnableCancelKey = xlInterrupt</SPAN>
End With</SPAN>
wkb1.Close SaveChanges:=False</SPAN>
wkb3.Close SaveChanges:=False</SPAN>
wkb4.Close SaveChanges:=False</SPAN>
wkb5.Close SaveChanges:=False</SPAN>
wkb6.Close SaveChanges:=False</SPAN>
wkb7.Close SaveChanges:=False</SPAN>
wkb8.Close SaveChanges:=False</SPAN>
End Sub</SPAN>
Public Sub Update_Ref()</SPAN>
Dim lngCalc As XlCalculation</SPAN>
Dim wkb1 As Excel.Workbook, wkb2 As Excel.Workbook, wkb3 As Excel.Workbook, wkb4 As Excel.Workbook, wkb5 As Excel.Workbook, wkb6 As Excel.Workbook, wkb7 As Excel.Workbook, wkb8 As Excel.Workbook</SPAN>
With Application</SPAN>
.ScreenUpdating = False</SPAN>
lngCalc = .Calculation</SPAN>
.Calculation = xlManual</SPAN>
.EnableEvents = False</SPAN>
.EnableCancelKey = xlErrorHandler</SPAN>
End With</SPAN>
On Error GoTo proc_End</SPAN>
Set wkb1 = Workbooks.Open("https://celcombluenet.celcom.com.my/division/Sales/Shared%20Folder/Training%20Management%20Tool%20Central.xlsm")</SPAN>
Set wkb2 = ThisWorkbook</SPAN>
Set wkb3 = Workbooks.Open("https://celcombluenet.celcom.com.my/division/Sales/Shared%20Folder/Training%20Management%20Tool%20HQ.xlsm")</SPAN>
Set wkb4 = Workbooks.Open("https://celcombluenet.celcom.com.my/division/Sales/Shared%20Folder/Training%20Management%20Tool%20Eastern.xlsm")</SPAN>
Set wkb5 = Workbooks.Open("https://celcombluenet.celcom.com.my/division/Sales/Shared%20Folder/Training%20Management%20Tool%20Northern.xlsm")</SPAN>
Set wkb6 = Wrokbooks.Open("https://celcombluenet.celcom.com.my/division/Sales/Shared%20Folder/Training%20Management%20Tool%20Southern.xlsm")</SPAN>
Set wkb7 = Workbooks.Open("https://celcombluenet.celcom.com.my/division/Sales/Shared%20Folder/Training%20Management%20Tool%2Sabah.xlsm")</SPAN>
Set wkb8 = Workbooks.Open("https://celcombluenet.celcom.com.my/division/Sales/Shared%20Folder/Training%20Management%20Tool%20Sarawak.xlsm")</SPAN>
Call wkb2.Sheets("Ref").Range("A1:F2210").Copy</SPAN>
Call wkb1.Sheets("Ref").Range("A1").PasteSpecial(Paste:=xlValues)</SPAN>
Call wkb3.Sheets("Ref").Range("A1").PasteSpecial(Paste:=xlValues)</SPAN>
Call wkb4.Sheets("Ref").Range("A1").PasteSpecial(Paste:=xlValues)</SPAN>
Call wkb5.Sheets("Ref").Range("A1").PasteSpecial(Paste:=xlValues)</SPAN>
Call wkb6.Sheets("Ref").Range("A1").PasteSpecial(Paste:=xlValues)</SPAN>
Call wkb7.Sheets("Ref").Range("A1").PasteSpecial(Paste:=xlValues)</SPAN>
Call wkb8.Sheets("Ref").Range("A1").PasteSpecial(Paste:=xlValues)</SPAN>
Application.CutCopyMode = False</SPAN>
proc_End:</SPAN>
With Application</SPAN>
.ScreenUpdating = True</SPAN>
.Calculation = lngCalc</SPAN>
.EnableEvents = True</SPAN>
.EnableCancelKey = xlInterrupt</SPAN>
End With</SPAN>
wkb1.Close SaveChanges:=False</SPAN>
wkb3.Close SaveChanges:=False</SPAN>
wkb4.Close SaveChanges:=False</SPAN>
wkb5.Close SaveChanges:=False</SPAN>
wkb6.Close SaveChanges:=False</SPAN>
wkb7.Close SaveChanges:=False</SPAN>
wkb8.Close SaveChanges:=False</SPAN>
End Sub</SPAN>