Resume Next is probably what you are looking for, but there is a caution
that come with it. If your subsequent code depends on the correctly
calculated values that are erroring out above them, then you may end up
producing additional errors that would not normally occur had the previous
error not taken place which, of course, would give you a false count.
--
Rick (MVP - Excel)
"Faraz A. Qureshi" <(E-Mail Removed)> wrote in
message news:843DB191-C49B-4279-BB6E-(E-Mail Removed)...
> In simple words what type of a code would be required for:
> ...
> On Error
> Counter=Counter+1;
> Resume Next Or Goto 0
> ...
>
> In the end:
>
> Msgbox "Number of errors were " & Counter
>
> --
> Best Regards,
>
> Faraz
|