Solved!
Andrew,
Awesome! The GetCrossReferencedItems/wdRefTypeHeading is the key! I need to read up on that a bit more. This might solve another problem for me too!
Had to make two minor tweeks to your example code:
If InStr(Trim(v), Trim(strTargetHeading)) = 1 Then
added the Trim() and set the find location to one. The first test case I ran using "3.1" found "2.3.1".
Thanks for the help!
Don
|