I am attempting to go through a word document and find a few specific tables among many tables. I know how to iterate through all tables using either the docx library or win32, found here. However, I need to access a few specific tables, not all of them.
These tables have headings, in the format of Table A.x.x-x Insert table summary
. They are text headings above the tables, not within the tables themselves. These don't show up when I use doc.ListParagraphs
from win32, however, so I can't successfully iterate through the tables in that manner.
I know the name of the table I need to access. There is unrelated text throughout the document. There aren't any blanket similarities in the tables I need to find, so I can't just look for a specific value in a certain cell or something like that.
Does anyone have suggestions on how to approach this? Preferably using win32 COM, but I'm open to any solutions.