Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Jules Jules is offline
external usenet poster
 
Posts: 51
Default line numbering with tables

I have a document that needs to have the lines numbered every tenth line.
The document is part plain text and part tables. Word's auto line numbering
by default does not number lines in tables and therefore my line numbering in
the document is not correct. Is there a way around this so that the line
numbering will also number the tables or would I have to do this manually?

thanks,
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Stefan Blom Stefan Blom is offline
external usenet poster
 
Posts: 8,428
Default line numbering with tables

You would have to do the numbering manually. Anchor a text box to the
header, drag it into the left (or right) margin and type in the numbers. For
text lines and numbers to line up, you will have to use an exact value for
line spacing in the document.

--
Stefan Blom
Microsoft Word MVP


"Jules" wrote in message
...
I have a document that needs to have the lines numbered every tenth line.
The document is part plain text and part tables. Word's auto line
numbering
by default does not number lines in tables and therefore my line numbering
in
the document is not correct. Is there a way around this so that the line
numbering will also number the tables or would I have to do this manually?

thanks,




  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Jules Jules is offline
external usenet poster
 
Posts: 51
Default line numbering with tables

I thought I would have to do it manually - thanks for your time.

"Stefan Blom" wrote:

You would have to do the numbering manually. Anchor a text box to the
header, drag it into the left (or right) margin and type in the numbers. For
text lines and numbers to line up, you will have to use an exact value for
line spacing in the document.

--
Stefan Blom
Microsoft Word MVP


"Jules" wrote in message
...
I have a document that needs to have the lines numbered every tenth line.
The document is part plain text and part tables. Word's auto line
numbering
by default does not number lines in tables and therefore my line numbering
in
the document is not correct. Is there a way around this so that the line
numbering will also number the tables or would I have to do this manually?

thanks,





  #4   Report Post  
Posted to microsoft.public.word.docmanagement
TonyK TonyK is offline
external usenet poster
 
Posts: 20
Default line numbering with tables

Hi Jules

This Macro code should achieve what you want. The assumption is that you
have an empty column at the left hand side of your table. There is probably
a much cleaner way of writing the VBA code but I am not a programmer I just
like playing with VBA Macros.

Sub RowNumbering()
'
' RowNumbering Macro
' Macro recorded 02/07/2008 by Tony King
'
Dim Counter
Dim Rows
Selection.GoTo What:=wdGoToTable, Which:=wdGoToFirst, Count:=1, Name:=""
Rows = Selection.Information(wdMaximumNumberOfRows)
Counter = Rows / 10
For Count = 1 To Rows / 10
Selection.TypeText Text:=Count
Selection.MoveDown Unit:=wdLine, Count:=Count + 9
Next Count
MsgBox ("Completed Row Numbering")
Selection.HomeKey Unit:=wdStory
End Sub

Hope this helps.
--
TonyK


"Jules" wrote:

I thought I would have to do it manually - thanks for your time.

"Stefan Blom" wrote:

You would have to do the numbering manually. Anchor a text box to the
header, drag it into the left (or right) margin and type in the numbers. For
text lines and numbers to line up, you will have to use an exact value for
line spacing in the document.

--
Stefan Blom
Microsoft Word MVP


"Jules" wrote in message
...
I have a document that needs to have the lines numbered every tenth line.
The document is part plain text and part tables. Word's auto line
numbering
by default does not number lines in tables and therefore my line numbering
in
the document is not correct. Is there a way around this so that the line
numbering will also number the tables or would I have to do this manually?

thanks,





Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Line Numbering in Word 2003 tables Ralph Tables 2 April 16th 08 08:07 PM
Line numbering by 5s pages 1-15, then discontinue line numbering 1 Kathryn Pundt[_2_] Microsoft Word Help 1 October 26th 07 06:11 PM
Is it possible to set line numbering to include tables? crando Page Layout 1 August 23rd 07 12:34 AM
Line Numbering in Tables Journey51 Tables 4 August 12th 07 12:14 AM
How do I add line numbering to tables Tiddy McNipples Tables 1 October 16th 06 08:29 AM


All times are GMT +1. The time now is 01:41 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"