
Signature
Matthew Leingang
Remove caps for correct email address
Hi Matthew,
your code works perfectly here and now.
Which doesn't help you much, of course, I'm sorry.
In some versions of Word higher than 97
Selection.Information(wdFirstCharacterLineNumber)
returns -1, unless views, e.g. normal view versus print view,
where not switched to and fro before.
Maybe there are similar effects with wdActiveEndPageNumber.
At least you know, it has nothing to do with your code.
Greetings from Bavaria, Germany
Helmut Weber, MVP
"red.sys" & chr(64) & "t-online.de"
Word XP, Win 98
http://word.mvps.org/
Matthew Leingang - 31 Mar 2005 20:57 GMT
Dear Helmut,
Thanks for checking. I probably should have mentioned that I'm using Word
2004 for Mac. Maybe that's the problem.
I was able to work around by selecting each range, then getting the
selection's information:
Set cmt = curDoc.Comments(i)
cmt.scope.Select
rng.InsertAfter ("Page " & Selection.Information(wdActiveEndPageNumber)
& ", ")
rng.InsertAfter ("line " &
Selection.Information(wdFirstCharacterLineNumber) & ": ")
I know, originally I had wanted to give the paragraph number but this is
just as good.
Yours,
Matthew Leingang <-- ein deutsche Name. Meine Vorfahren kommen aus der
Pfalz
On 3/31/05 1:47 PM, in article 1jgo41hji9rd3oi7ivlj46otdin0dnv5uj@4ax.com,
> Hi Matthew,
>
[quoted text clipped - 16 lines]
> Word XP, Win 98
> http://word.mvps.org/