They 'why' it fails is likely due to a VBA timing bug. Since it also seems to depend on what's selected when you run the code, I wonder if selecting the headers as you loop through them will change the behaviour?
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
|