H
Howard Kaikow
Is this a bug, or a corrupted document?
Say, there are 100 pages in a document, including a few section breaks (all
odd page), then if I use something like the following, I would expect
wdActiveEndAdjustedPageNumber to return a different number for each page
within a section.
previous = 0
For i = 1 to 100
selection.goto what:=wdgotopage, which:=wdgotoabsolute, count:=i
current = selection.information(wdActiveEndAdjustedPageNumber)
if current = previous then
debug.print current, "Duplicate page number in section"
end if
previous = current
next i
Alas, I have a document in which there are 5 cases of duplicate page
numbers. Each is preceded by an odd page section break, but there are many
other odd page section breaks that do not exhibit this behavior.
I have tried using both Range and Selection objects.
Is this a known bug with wdActiveEndAdjustedPageNumber?
I got 0 hits searching for wdActiveEndAdjustedPageNumber in the KB.
Or is this likely just a corrupt document?
Say, there are 100 pages in a document, including a few section breaks (all
odd page), then if I use something like the following, I would expect
wdActiveEndAdjustedPageNumber to return a different number for each page
within a section.
previous = 0
For i = 1 to 100
selection.goto what:=wdgotopage, which:=wdgotoabsolute, count:=i
current = selection.information(wdActiveEndAdjustedPageNumber)
if current = previous then
debug.print current, "Duplicate page number in section"
end if
previous = current
next i
Alas, I have a document in which there are 5 cases of duplicate page
numbers. Each is preceded by an odd page section break, but there are many
other odd page section breaks that do not exhibit this behavior.
I have tried using both Range and Selection objects.
Is this a known bug with wdActiveEndAdjustedPageNumber?
I got 0 hits searching for wdActiveEndAdjustedPageNumber in the KB.
Or is this likely just a corrupt document?