<<With an error handler in place, this line should simply set pfSumOfActual
to Nothing, so there should be no error.>>
Actually, this is not quite correct. An error still occurs, but because of
the statement further up in the routine:
On Error Resume Next
.... the program simply continues on anyway (assuming that the "Break in
Class Module" option is set for error handling), so that the programmer can
catch it by manually checking anything that might have caused an error (the
"If pfSumOfActual Is Nothing ..." line in my code).
See
http://www.cpearson.com/excel/ErrorHandling.htm for a whole page of
examples and more explanation.
--
Regards,
Bill Renaud