Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-16-2023, 01:31 PM
CellCharger CellCharger is offline Line numbers in a table Windows 10 Line numbers in a table Office 2019
Novice
Line numbers in a table
 
Join Date: Oct 2021
Location: NJ, USA
Posts: 24
CellCharger is on a distinguished road
Default Line numbers in a table

Hi everyone,

I have a document that mainly consists of a table (one row) that can could extend across many pages. I need to add line numbers but I am unable to do that when there is a table.


Attached Images
File Type: png line numbers.png (36.1 KB, 18 views)
Attached Files
File Type: docx line numbers.docx (14.0 KB, 2 views)
Reply With Quote
  #2  
Old 08-19-2023, 03:06 AM
Stefan Blom's Avatar
Stefan Blom Stefan Blom is offline Line numbers in a table Windows 11 Line numbers in a table Office 2021
Moderator
 
Join Date: Aug 2011
Posts: 3,907
Stefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to all
Default

You can fake it by anchoring a text box with typed numbers to the page header. Anchor the text box so that it aligns with the page top margin and fill it with numbers. The text box will repeat on all pages that use the same header. I believe that some of Word's legal templates make use of this trick.
Attached Images
File Type: jpg FakeLineNumberingSample.jpg (77.7 KB, 13 views)
__________________
Stefan Blom
Microsoft Word MVP

Microsoft 365 apps for business
Windows 11 Professional
Reply With Quote
  #3  
Old 08-19-2023, 03:28 AM
Stefan Blom's Avatar
Stefan Blom Stefan Blom is offline Line numbers in a table Windows 11 Line numbers in a table Office 2021
Moderator
 
Join Date: Aug 2011
Posts: 3,907
Stefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to all
Default

Here is a sample document in Word format.
Attached Files
File Type: docx Sample doc with fake line numbering.docx (23.0 KB, 6 views)
__________________
Stefan Blom
Microsoft Word MVP

Microsoft 365 apps for business
Windows 11 Professional
Reply With Quote
  #4  
Old 08-21-2023, 07:55 AM
CellCharger CellCharger is offline Line numbers in a table Windows 10 Line numbers in a table Office 2019
Novice
Line numbers in a table
 
Join Date: Oct 2021
Location: NJ, USA
Posts: 24
CellCharger is on a distinguished road
Default

Thank you Stefan for the workaround.

Can the numbers continue on the following pages? The numbers restart with every page.

Attached Images
File Type: png line number.png (64.8 KB, 11 views)
Reply With Quote
  #5  
Old 08-21-2023, 08:19 AM
Stefan Blom's Avatar
Stefan Blom Stefan Blom is offline Line numbers in a table Windows 11 Line numbers in a table Office 2021
Moderator
 
Join Date: Aug 2011
Posts: 3,907
Stefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to all
Default

You can't create consecutive numbering across pages, because the text box in the header is showing the same content on all pages. (Sequential numbering can be done with SEQ fields, but these do not work inside the header or footer.)

However, you can add a page number reference, if that helps. Just prefix the "fake line numbers" with a PAGE field (Alt+Shift+P).

In the attached sample, I have done that for the very first line number.
Attached Files
File Type: docx Sample doc 2.docx (24.0 KB, 3 views)
__________________
Stefan Blom
Microsoft Word MVP

Microsoft 365 apps for business
Windows 11 Professional

Last edited by Stefan Blom; 08-21-2023 at 12:24 PM.
Reply With Quote
  #6  
Old 08-21-2023, 08:31 AM
CellCharger CellCharger is offline Line numbers in a table Windows 10 Line numbers in a table Office 2019
Novice
Line numbers in a table
 
Join Date: Oct 2021
Location: NJ, USA
Posts: 24
CellCharger is on a distinguished road
Default

Thanks so much for the quick reply. This is definitely a better solution.
I hope Microsoft considers adding a feature where lines in table rows can be numbered. I deal with a lot of draft documents and I need the lines to be numbered for easy referencing.

I appreciate your help.

Regards,

M
Reply With Quote
  #7  
Old 08-21-2023, 12:15 PM
Charles Kenyon Charles Kenyon is offline Line numbers in a table Windows 11 Line numbers in a table Office 2021
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,140
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

You could use a borderless text box on each page and link them for continuous numbering. This would not be in the header, though, and you would have to create the text box on each page. I believe you can link up to 16 text boxes.

Otherwise, in the header, you could use a complex conditional field keyed to the page number to produce the numbering. This would be a real nightmare to create and maintain, though.
The place to ask Microsoft for changes is their feedback mechanisms.
Reply With Quote
  #8  
Old 08-21-2023, 12:21 PM
Stefan Blom's Avatar
Stefan Blom Stefan Blom is offline Line numbers in a table Windows 11 Line numbers in a table Office 2021
Moderator
 
Join Date: Aug 2011
Posts: 3,907
Stefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to all
Default

Good point. For smaller documents that would be possible. :-)
__________________
Stefan Blom
Microsoft Word MVP

Microsoft 365 apps for business
Windows 11 Professional
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Line numbers in word Louise Pearce Word 3 02-27-2019 10:16 AM
How to make line numbers remain KasperMikkelsen Word 10 02-24-2017 06:39 AM
Line numbers in a table Getting the line numbers in the footer to line up...? dwarsement Word 3 07-01-2015 01:17 AM
Line numbers in a table Add line numbers to end of each line deboo Word 6 08-20-2012 07:35 PM
Line numbers in a table How to paste into another app without line numbers? Moonf4 Word 1 04-18-2011 03:16 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:34 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft