Reply
 
Thread Tools Display Modes
  #1   Report Post  
Dede
 
Posts: n/a
Default Stopping auto row in table

In a table, how to you stop the "auto add row" by tabbing in last cell.
  #2   Report Post  
Doug Robbins
 
Posts: n/a
Default

If you have the following macro in the normal.dot template or an add-in, it
will stop a row being added when the tab key is pressed in the last cell in
the table:

Sub NextCell()
'
' NextCell Macro
' Moves to the next table cell unless the selection is in the last cell of
the table
'
Dim i As Long, j As Long
If Selection.Information(wdEndOfRangeRowNumber)
Selection.Tables(1).Rows.Count Or
Selection.Information(wdEndOfRangeColumnNumber)
Selection.Tables(1).Columns.Count Then
Selection.MoveRight Unit:=wdCell
Else
Exit Sub
End If

End Sub


--
Please respond to the Newsgroup for the benefit of others who may be
interested. Questions sent directly to me will only be answered on a paid
consulting basis.

Hope this helps,
Doug Robbins - Word MVP
"Dede" wrote in message
...
In a table, how to you stop the "auto add row" by tabbing in last cell.



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
How do I auto copy data from cell in a word table to another cell. Nev New Users 1 February 4th 05 08:51 PM
auto table of contents Karin Microsoft Word Help 2 February 1st 05 11:58 PM
Word 2003 - Setting table row height to auto MCR Tables 1 December 14th 04 10:23 AM
Row height problem with table in table Stephanie T. Tables 0 November 23rd 04 03:35 PM
table caption numbering scottkinsey Tables 1 November 11th 04 11:47 AM


All times are GMT +1. The time now is 03:58 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"