Hello all,
I'm searching through a large document looking for Tables and Figures.
I'm using the selection.find method keying off of .Style = "Tbl Title" for tables, .Style="Fig Title" for figures. I want to take the information and populate an Excel spreadsheet with the table and figure information. I am having trouble using the collapse method. For Tables there are two paragraphs in the heading but for Figures there is only one paragraph. I'm using the code below::
Selection.Collapse wdCollapseStart
Selection.MoveEnd wdParagraph, 2
strNames(intCount) = Selection.Paragraphs(1).Range.Text
strNames2(intCount) = Selection.Paragraphs(2).Range.Text
which works for tables but I can't get it to work for figures. Attached is an example of the document.
Quinn