Hi Doug, and thanks for posting. I appreciate your occupation, my experience
is on the embedded microcontroller side. I am trying to help someone work
through this problem for their company (unpaid). My coding experience is
limited
in the Office arena, but have been doing some C# and a lot of Ansi C for
8/16 bit
micros....
I think that you may have given me the means to an end, but let me explore
this for the sake of all who might happen to be looking for the same
information (I know there have been at least three of four earnest
investigators that are struggling with this).
First, I want to clarify what I think Linenumber is:
I have a Word 2003 document that I have populated with text and pictures.
Using Word 2003 when I turn on the word count toolbar, and select Lines,
then click Recount, this toolbar item tells me that my document has 207 lines.
Using Word 2003 when I go to Page Setup, select the Layout tab, click on
Line Numbering, and turn it on so that the first number is 1, and the
numbering is continuous, the last line number (printed in the left most
column) in my document is 131.
So right off the bat, I have an issue with the Word Count toolbar..but hey,
I didnt pay anything for that little toolbar....
What I need to be able to display in a table, is the line number (of a
particular bookmark or other special field code) that is shown in the left
column when Line Numbering is turned on.
I think you are telling me that if I select a bookmark (using a macro), that
I can get the line number (I am hoping that this would be the same line
number that is presented by the Line Numbering as opposed to the Word Count
toolbar) from the range properties of the first character of the bookmark.
It is acceptable that the bookmark may move from one line to another,
because what I need is to be able to display in a table (somewhere in the
same document), the page# and the line# of the first character of the
bookmark and be able to update the field or value either through F9 or a
macro.
If in fact the absolute line number (I am referring to the WordCount
toolbar count of lines in the document) is part of the property of the range
information as opposed to the line numbering line number, then is there a way
to convert between absolute line numbers and the Line Numbering line numbers?
It would seem possible that a macro or VB module could parse the document,
and not increment the line number when the absolute line is occupied by a
figure or table... I am guessing more than a few lines of code to do this...
If you have the time, perhaps just correcting my use of terminology so that
I might be able to search the correct terms and get a solution out there. If
you have more than that well you might just be a hero..
Cheers,
Rob