View Single Post
 
Old 09-07-2011, 06:13 AM
DugganSC DugganSC is offline Windows XP Office 2007
Novice
 
Join Date: Aug 2011
Posts: 8
DugganSC is on a distinguished road
Red face 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.
Reply With Quote