U
upendra
Hi,
I would like to know the last line number in each and every page in a
given word document.
Example: Page 1- 39 Lines,Page2-47 Lines etc.,
I have tried the below but the resultant no.of lines information is
not correct by this method.
Sub linecount()
For i = 1 To ActiveWindow.Panes.Item(1).Pages.Count
Debug.Print "Page" & i & "–" &
ActiveWindow.Panes.Item(1).Pages(i).Rectangles.Item(1).Lines.Count & "
Lines", vbOKOnly, "Pagewise Line Count"
Next
End Sub
As there is now page.lines count sort of VBA command in Word. Kindly
help me if anybody knows how to achieve this.
I would like to know the last line number in each and every page in a
given word document.
Example: Page 1- 39 Lines,Page2-47 Lines etc.,
I have tried the below but the resultant no.of lines information is
not correct by this method.
Sub linecount()
For i = 1 To ActiveWindow.Panes.Item(1).Pages.Count
Debug.Print "Page" & i & "–" &
ActiveWindow.Panes.Item(1).Pages(i).Rectangles.Item(1).Lines.Count & "
Lines", vbOKOnly, "Pagewise Line Count"
Next
End Sub
As there is now page.lines count sort of VBA command in Word. Kindly
help me if anybody knows how to achieve this.