How can I get a list of all the headings in a Microsoft Word document by using AutoIt?
I tried:
#include <Word.au3>
#include <MsgBoxConstants.au3>
Global Const $wdRefTypeHeading = 1 ; Heading
$Headings = $oDoc.GetCrossReferenceItems($wdRefTypeHeading)
$Count = UBound($Headings)
MsgBox($MB_SYSTEMMODAL, "Debug", $Count)
But it did not function well..
For example, it just get 1 heading from my rich document that have many headings!
I also tried this:
#include <Word.au3&g