MS Word COM error w/ Borders property

Nikolai Kirsebom nikolai at micon.no
Tue Nov 9 18:19:43 EST 1999


Try the following:

for i in range(word.ActiveDocument.Tables(1).Borders.Count):
   print word.ActiveDocument.Tables(1).Borders(i+1).LineStyle

and you'll have all the line styles of the first table in your active
document.

Nikolai







More information about the Python-list mailing list