Did you check whether the table might be corrupted? I don't get an error using that code. Mind you, it also won't do what you're probably expecting it to... (Hint: the code doesn't select anything - and doesn't need to). That said, one wonders why you're overriding a Style definition with hard formatting instead of either modifying the existing Style or applying another one with the required formatting.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
|