If I try to have msgbox(varXRefs), it comes up with an error. If I step
through the program and stop, the varXRefs(index) always gives me the correct
count. Of course, it is hard to test when you don't get the error that
others are getting. I'll have to check out their file on their system and
see what is going on. Thanks.

Signature
Debra Ann
> If you msgbox varXRefs, what value does it state?
>
[quoted text clipped - 40 lines]
> >
> > End Sub
zkid - 28 Apr 2006 20:15 GMT
Hi Debra Ann,
I'm sorry, what I meant was msgbox Ubound(varxRefs). Check to make sure
that it agrees with varxRefs(index).
I'm assuming you are not using Option Base 1 and your array starts with zero?
> If I try to have msgbox(varXRefs), it comes up with an error. If I step
> through the program and stop, the varXRefs(index) always gives me the correct
[quoted text clipped - 46 lines]
> > >
> > > End Sub