Hi All

I have a word document, in which I needs to get all tables
In addition, I need to know which headings corresponds to each table

I figured out to get the tables with:
ActiveDocument.Content.Tables(x)

Also I can find the headings by checking Content.Paragraphs(x).Style

But how do I find out which heading is the last before a specific table?
And how do I get the heading number, the paragraphs only contains the text?

Regards
Michael