[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][INDENT][FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]1. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"]PrivateSub Worksheet_Change(ByVal Target As Range)[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]2. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"]Dimi As Long, j As Long, errorFound[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]3. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"]OnError GoTo errorFound[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]4. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"]IfTarget.Address <> "$AC$6" Then Exit Sub[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]5. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"]Application.EnableEvents= False[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]6. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] ' Determine Row # and Column #[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]7. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] i =Application.Match(Range("AC3"), Range("A1:A18"), 0)[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]8. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] j =Application.Match(Range("AC4"), Range("A2:R2"), 0)[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]9. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] [/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]10. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] ' Adjust the Intersection cell Value bysubstracting Input in AC6[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]11. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] Cells(i, j).Value = Cells(i, j).Value -Target[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]12. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] [/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]13. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] ' Clear ONLY Target cell[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]14. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] Target.ClearContents[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]15. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] [/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]16. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"]errorFound:[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]17. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"]Application.EnableEvents= True[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]18. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"]EndSub[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]19. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"]PrivateSub Worksheet_Change(ByVal Target As Range)[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]20. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] 'This code goes in Book13, amend for book14[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]21. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] [/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]22. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] [/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]23. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] 'this sub requires both workbooks to beopen[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]24. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] Dim wb As Workbook[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]25. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] Dim spath As String, sFileName As String[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]26. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] Dim bOpen As Boolean 'remember if workbookwas open or not[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]27. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] [/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]28. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] spath ="C:\Users\s21375\Desktop\"[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]29. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] [/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]30. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] ' *** This line needs changing for Book 14[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]31. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] sFileName = "Test1.xlsm"[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]32. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] [/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]33. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] On Error Resume Next[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]34. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] Set wb = Workbooks(sFileName)[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]35. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] If wb Is Nothing Then[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]36. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] Set wb = Workbooks.Open(spath &sFileName)[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]37. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] If wb Is Nothing Then[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]38. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] MsgBox "File can not beopened", vbCritical[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]39. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] Exit Sub[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]40. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] End If[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]41. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] Else[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]42. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] bOpen = True[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]43. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] End If[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]44. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] On Error GoTo 0[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]45. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] [/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]46. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] Application.EnableEvents = False[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]47. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] Application.ScreenUpdating = False[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]48. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] [/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]49. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] wb.Sheets(Me.Name).Range(Target.Address) =Target[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]50. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] If bOpen = False Then[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]51. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] wb.Save[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]52. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] End If[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]53. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] Application.EnableEvents = True[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]54. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] Application.ScreenUpdating = True[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]55. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] [/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]56. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] [/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]57. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] If Not Intersect(Target,Me.Range("A2:R18")) Is Nothing Then[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]58. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] ThisWorkbook.Save[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]59. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] End If[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][/INDENT]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Times New Roman"]End Sub[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][FONT=Calibri][SIZE=3][COLOR=#000000] [/COLOR][/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][INDENT][FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]1. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"]PrivateSub Worksheet_Change(ByVal Target As Range)[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]2. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] 'This code goes in Book13, amend for book14[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]3. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] [/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]4. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] [/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]5. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] 'this sub requires both workbooks to beopen[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]6. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] Dim wb As Workbook[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]7. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] Dim spath As String, sFileName As String[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]8. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] Dim bOpen As Boolean 'remember if workbookwas open or not[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]9. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] [/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]10. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] spath ="C:\Users\s21375\Desktop\"[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]11. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] [/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]12. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] ' *** This line needs changing for Book 14[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]13. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] sFileName = "Test1.xlsm"[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]14. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] [/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]15. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] On Error Resume Next[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]16. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] Set wb = Workbooks(sFileName)[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]17. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] If wb Is Nothing Then[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]18. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] Set wb = Workbooks.Open(spath &sFileName)[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]19. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] If wb Is Nothing Then[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]20. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] MsgBox "File can not beopened", vbCritical[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]21. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] Exit Sub[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]22. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] End If[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]23. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] Else[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]24. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] bOpen = True[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]25. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] End If[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]26. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] On Error GoTo 0[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]27. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] [/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]28. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] Application.EnableEvents = False[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]29. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] Application.ScreenUpdating = False[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]30. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] [/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]31. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] wb.Sheets(Me.Name).Range(Target.Address) =Target[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]32. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] If bOpen = False Then[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]33. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] wb.Save[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]34. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] [/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]35. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] End If[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]36. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] Application.EnableEvents = True[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]37. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] Application.ScreenUpdating = True[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]38. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] [/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]39. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] [/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]40. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] If Not Intersect(Target,Me.Range("A2:R18")) Is Nothing Then[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]41. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] ThisWorkbook.Save[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Courier New"]42. [/FONT][/COLOR][COLOR=#574123][FONT="Courier New"] End If[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][/INDENT]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#574123][FONT="Times New Roman"]End Sub[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/CO[/COLOR][/SIZE][/FONT]DE]