#1   Report Post  
Posted to microsoft.public.word.docmanagement
Alex Mackenzie
 
Posts: n/a
Default Rows adding to Tables

When tabbing through an existing table, when tabbing out of the last cell on
the bottom row, another row is automatically added. Is it possible to
disable this?

Thank you.
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Jay Freedman
 
Posts: n/a
Default Rows adding to Tables

Alex Mackenzie wrote:
When tabbing through an existing table, when tabbing out of the last
cell on the bottom row, another row is automatically added. Is it
possible to disable this?

Thank you.


I'll assume you want to do this only for documents based on a particular
document, rather than for all documents. In that template, insert this macro
(see http://www.gmayor.com/installing_macro.htm if needed):

Sub NextCell()
Dim thisCol As Long, thisRow As Long
Dim lastCol As Long, lastRow As Long
With Selection.Tables(1)
lastCol = .Columns.Count
lastRow = .Rows.Count
End With
With Selection.Cells(1)
thisCol = .ColumnIndex
thisRow = .RowIndex
End With
If Not ((thisCol = lastCol) And (thisRow = lastRow)) Then
Selection.Cells(1).Next.Select
Selection.Collapse wdCollapseStart
End If
End Sub

The name of this macro, NextCell, makes it intercept Word's internal command
that runs when you tab in a table cell. The code figures out whether your
selection is in the last cell of the table. If it is there, then the macro
(and thus the command) does nothing; otherwise it goes to the next cell.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.


  #3   Report Post  
Posted to microsoft.public.word.docmanagement
CyberTaz
 
Posts: n/a
Default Rows adding to Tables

Someone may be able to offer you a VBA-based solution, but there is no
setting in Word as it doesn't recognize 'tabbing out of' (or 'tabbing into')
a table.

Regards |:)

"Alex Mackenzie" wrote:

When tabbing through an existing table, when tabbing out of the last cell on
the bottom row, another row is automatically added. Is it possible to
disable this?

Thank you.

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
Word tables: let us make rows same width Joe Lewis Tables 13 November 16th 05 11:49 AM
Tables - Heading Rows Repeat Over Sections Chris Beneteau Page Layout 2 October 11th 05 07:10 PM
Deleting blank rows in all tables KWC via OfficeKB.com Tables 2 June 24th 05 05:33 PM
Word tables should permit header rows to repeat only on every oth. vepxistqaosani Tables 4 February 24th 05 05:53 AM
Excel Link: Adding rows in Excel does not add cells in Word Jameslp Tables 2 December 9th 04 07:18 PM


All times are GMT +1. The time now is 02:26 AM.

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"