I have a list of tables I'm populating using a field code like this:
instrText.text = 'TOC \\h \\z \\c "Table"'
It works well, but if there are no tables, Microsoft Word will use the placeholder text:
No table of figures entries found.
That looks a bit weird, since the heading directly above it is "List of Tables"
I tried this but it didn't take:
instrText.text = 'TOC \\h \\z \\c "Table" \\* MERGEFORMAT \* \\z "No tables found in the document."'