T
Tony
To get page and linenumbers from comments inserted in a
word document I use:
for each objComment in Activedocument.Comments
iPage = objComment.Reference.Information
(wdActiveEndPageNumber)
iLine = objComment.Reference.Information
(wdFirstCharacterLineNumber)
Msgbox "Comment at page: " & iPage & " line: " & iLine
next objComment
This piece of code used to work fine but somehow suddenly
the linenumber returned is -1.
Also the pre-requisite for Options.Pagination and
ActiveDocument.ActiveWindow.View.Draft are set to resp.
True and False as instructed in the VBA help (see quote
from help file below).
wdFirstCharacterLineNumber Returns the line number of
the first character in the selection. If the Pagination
property is False or the Draft property is True, returns -
1.
Question: Is there a solution or workaround available or
does anyone experience the same problem?
OS Name Microsoft Windows XP Professional
Version 5.1.2600 Service Pack 1 Build 2600
Word 2000, 9.0.6926 SP-3
word document I use:
for each objComment in Activedocument.Comments
iPage = objComment.Reference.Information
(wdActiveEndPageNumber)
iLine = objComment.Reference.Information
(wdFirstCharacterLineNumber)
Msgbox "Comment at page: " & iPage & " line: " & iLine
next objComment
This piece of code used to work fine but somehow suddenly
the linenumber returned is -1.
Also the pre-requisite for Options.Pagination and
ActiveDocument.ActiveWindow.View.Draft are set to resp.
True and False as instructed in the VBA help (see quote
from help file below).
wdFirstCharacterLineNumber Returns the line number of
the first character in the selection. If the Pagination
property is False or the Draft property is True, returns -
1.
Question: Is there a solution or workaround available or
does anyone experience the same problem?
OS Name Microsoft Windows XP Professional
Version 5.1.2600 Service Pack 1 Build 2600
Word 2000, 9.0.6926 SP-3