Hint: In the VBA Editor, go to Tools|Options>Editor and check 'Require variable declaration'. Although it means you'll have to declare your variables (e.g. Dim myTable As Table), it also means errors of this kind will be trapped.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
|