Looking at PR Code only in column C of the Detail Report sheet, there are only 2 instances.
When the PrError macro has finished how much will it add to cell C16 of the Generalized Report sheet?

I reckon it could be 2, or maybe 22.
Is it one of these, or something else?
From your answer I might be able to guess what you're trying to do.