Setting cursor after last Table of Contents
I'm building a macro to auto-format our requirements documents and one of my tasks is to place a Table of Figures right after the Table of Contents. Theoretically, this is an easy task, just invoking ActiveDocument.TableOfFigures.Add when the cursor is in the right place. The problem I'm finding is putting it in the right place. Usually, I'll location an object, select it, and then move down, but the Table of Contents object does not seem to have a Select method. Any advice?
This is in Microsoft Word 2007 using VBA for the macro.
|