Hi Omatase
> I can run the same code on the
>same document immediately after the failure and it works.
I have experience similar things with tables, though not particulary with
.LeftPadding that I recall. Setting the width of a table is often precarious
and so is setting borders. When I run into problems like these with tables I
generally create a little loop and if it errors out I'll give it, say, 3
times to get it right. Otherwise, just move on.
For what it's worth, I find that reading a setting is reliable. So if it's a
really important setting, you can read the property after you try to set it,
and, if necesary, warn the user that it hasn't "stuck".
Hope this helps.
Shauna Kelly. Microsoft MVP.
http://www.shaunakelly.com/word
> I'm writing some code against the Word object model to add a table to
> some word documents. I have tens of thousands of these files that need
[quoted text clipped - 25 lines]
> same document immediately after the failure and it works. Can anyone
> help with this?