K
khalid
Hello all,
I am trying to figure out the syntax for counting the number of lines a
range of text in the HEADER spans. I am able to easily do this for text that
is not in the header (by finding the beginning line of where it starts and
where it ends and subtracting the 2).
I use this code for finding the line starts:
Range.Information(wdFirstCharacterLineNumber)
This will find the line starts, but the problem is it always returns -1 when
the range is in the header (or footer for that matter). Is there another way
I can find how many lines a range wraps in the header?
Pulling my hair trying to figure this one....
Thanks in advance!!!
I am trying to figure out the syntax for counting the number of lines a
range of text in the HEADER spans. I am able to easily do this for text that
is not in the header (by finding the beginning line of where it starts and
where it ends and subtracting the 2).
I use this code for finding the line starts:
Range.Information(wdFirstCharacterLineNumber)
This will find the line starts, but the problem is it always returns -1 when
the range is in the header (or footer for that matter). Is there another way
I can find how many lines a range wraps in the header?
Pulling my hair trying to figure this one....
Thanks in advance!!!