A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
I have uploaded a copy of the template.
I have looked at your template, there are several issues in the code.
The issue for the error that you asked for is this code block:
ActiveSheet.Unprotect
ActiveWorkbook.Worksheets(1).Cells(10, 12) = _
ActiveWorkbook.Worksheets(1).Cells(14, 23) + _
ActiveWorkbook.Worksheets(1).Cells(16, 23) + _
ActiveWorkbook.Worksheets(1).Cells(18, 23) + _
ActiveWorkbook.Worksheets(1).Cells(20, 23) + _
ActiveWorkbook.Worksheets(1).Cells(22, 23) + _
ActiveWorkbook.Worksheets(1).Cells(24, 23) + _
ActiveWorkbook.Worksheets(1).Cells(26, 23) + _
ActiveWorkbook.Worksheets(1).Cells(28, 23) + _
ActiveWorkbook.Worksheets(1).Cells(30, 23) + _
ActiveWorkbook.Worksheets(1).Cells(32, 23)
ActiveSheet.Protect
When you change a cell inside the Worksheet_Change event causes that the event routine is called, means your code is called again and again and again and again ... until it crashes with the RTE.
The solution is to switch the events off before the cell is changed:
ActiveSheet.Unprotect
Application.EnableEvents = False
ActiveWorkbook.Worksheets(1).Cells(10, 12) = _
ActiveWorkbook.Worksheets(1).Cells(14, 23) + _
ActiveWorkbook.Worksheets(1).Cells(16, 23) + _
ActiveWorkbook.Worksheets(1).Cells(18, 23) + _
ActiveWorkbook.Worksheets(1).Cells(20, 23) + _
ActiveWorkbook.Worksheets(1).Cells(22, 23) + _
ActiveWorkbook.Worksheets(1).Cells(24, 23) + _
ActiveWorkbook.Worksheets(1).Cells(26, 23) + _
ActiveWorkbook.Worksheets(1).Cells(28, 23) + _
ActiveWorkbook.Worksheets(1).Cells(30, 23) + _
ActiveWorkbook.Worksheets(1).Cells(32, 23)
Application.EnableEvents = True
ActiveSheet.Protect
Further more this template works only when a) Excel is newly started and b) no other file is opened and c) it can be used only once. After you worked with the template Excel must be closed completely, otherwise you get different run time errors, resp. code issues.
If you are interested in a revision, have a look into my profile for my mail address and send me a mail, I'll send you an offer.
Andreas.