Could it be that the section number is not currect?
I use:
sectionNum = .Information(wdActiveEndSectionNumber)
Set secTemp = ActiveDocument.Sections(sectionNum)
This occurs when the correct heading is selected.
However, when I look at the text it has the text of another heading.
When I step through the document I see that the section numbers increase.
I also tried to see if the line above has a section break. I can't seem to compare to "^b". Could you do that?
|