Word Tables

F

Frog

Trying to change the order of the tabs of text fields within a table. It
goes from left table to the right table instead of down. How do I change the
direction and order of the tabs.
 
D

Doug Robbins - Word MVP

Use the following macro which will hijack the use of the tab key in a table
so that it does what you want:

Sub NextCell()
'
' NextCell Macro
' Moves to the next table cell
' Modified by Doug Robbins to the next cell in the column before moving to
the next column
With Selection.Tables(1)
If Selection.Information(wdEndOfRangeRowNumber) < .Rows.Count Then
Selection.MoveDown
ElseIf Selection.Information(wdEndOfRangeColumnNumber) <
..Columns.Count Then
.Cell(1, Selection.Information(wdEndOfRangeColumnNumber) +
1).Select
Selection.Collapse wdCollapseStart
Else
MsgBox "You have reached the end of the table."
End If
End With


End Sub


--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top