Hi Gurus,
Using Microsoft Word - VBA, is it possible to create a VBA macro to read from a table and then create a table of content ?
I have tried macro to create Table of Content based on Heading and Subheading and no issue with that. However, I can't get the right when I loop through the table.
Example in my Table
Row 1 - Cell_1, Cell_2, Cell_3
Row 2 - Cell_1, Cell_2, Cell_3
Row 3 - Cell_1, Cell_2, Cell_3
I would like to take the text from Cell_2 and create a table of content.
Row_1-Cell_2 ... page 1
Row_2-Cell_2 ... page 3
Row_3-Cell_2 ... page 3
Can I utilize the Add Method as decribed here ? http://msdn.microsoft.com/en-us/libr.../ff835785.aspx
Any example that you can share ? Thanks.
Bookmarks