troubleshooting Question

VBA: given a Table object, determine which Footer applies

Avatar of pteranodon72
pteranodon72Flag for United States of America asked on
Microsoft Word
2 Comments1 Solution333 ViewsLast Modified:
I have a bunch of Word documents that have multiple tables and multiple section breaks. I am writing code to traverse each table and fill column 1 with the text of the footer on which the table falls. In this scenario, doc.tables(5) may appear in doc.sections(3), but I can't figure out how to determine the section number for a given table. There may be section breaks that don't contain tables, or multiple tables within the same section, so I can't use a simple offset.

Any ideas?

Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros