I have Table of Contents working fine. I can't get a Table Of Figures to work, however. I have tried setting the Caption property, but I still get "No Tables of Figures Entries Found". Anybody, HELP! Thanks.
I just read the link you provided, which I have seen before. It speaks only to the "manual" method. I am aware that I can record a macro and review it, but seeing a few lines of sample code is so much more informative as you have to separate all that you don't need from that which you do when looking at macros.
Sorry, the title of my post included "Word Automation", and I am using the automation object.
No, I am actually using the Progress ABL to drive the MSWORD.OLB object. I create the TOF point at the top of the document creation, just like I do for the TOC. I update the TOF at the end, just like I do the TOC. The Table of Contents works great. I just cannot identify the right method for saying that "this text here is one of my captions". I looked at the caption method, but although I get no errors, it does nothing.
Interesting, but I used the "record macro" method and found that the InsertCaption method is apparently the method to use on the SELECTION or RANGE object. Fine, but now I get an error "Command Failed" (great message), with error code 0x80020009. Not finding much that helps on the web with that error.