MS Word COM error w/ Borders property

Mark Hammond mhammond at skippinet.com.au
Tue Nov 9 22:15:25 EST 1999


john whittaker wrote in message <38289ED8.9BA2645A at alliedsignal.com>...
>I got the following error when I tried to use get at the bottom border
>from a borders collection:
>>>> borders = word.ActiveDocument.Tables[0].Borders
>>>>borders[ -3 ]

Try using borders.Item(-3)

Using the "-3" syntax creates an enumerator, in which the -ve index is
invalid.

Mark.







More information about the Python-list mailing list