A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Tables
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Numbering cells vertically in Word 2007



 
 
Thread Tools Display Modes
  #1  
Old August 29th, 2008, 01:56 PM posted to microsoft.public.word.tables
Millie[_2_]
external usenet poster
 
Posts: 118
Default Numbering cells vertically in Word 2007

Is it possible to number cells vertically instead of horizontally in Word 2007?
--
Millie
  #2  
Old September 2nd, 2008, 07:12 AM posted to microsoft.public.word.tables
Graham Mayor
external usenet poster
 
Posts: 18,297
Default Numbering cells vertically in Word 2007

Tables are filled left to right, but you can put anything you want in the
cells of a table. What exactly are you trying to achieve?

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



Millie wrote:
Is it possible to number cells vertically instead of horizontally in
Word 2007?



  #3  
Old September 17th, 2008, 09:51 PM posted to microsoft.public.word.tables
Suzette
external usenet poster
 
Posts: 13
Default Numbering cells vertically in Word 2007

I'm having the same issue. I want to number the first column 1, 2, 3, 4 and
the second column 5, 6, 7, 8; not have then number 1-2, 3-4, etc. I can
achieve this by first numbering the first column and then numbering the
second column, and then selecting the numbers in the second column and
changing the start numbering value. But that is an aweful lot of steps to
achieve simple numbering. Any ideas?
Thanks, Suzette

"Graham Mayor" wrote:

Tables are filled left to right, but you can put anything you want in the
cells of a table. What exactly are you trying to achieve?

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



Millie wrote:
Is it possible to number cells vertically instead of horizontally in
Word 2007?




  #4  
Old September 18th, 2008, 02:55 PM posted to microsoft.public.word.tables
Graham Mayor
external usenet poster
 
Posts: 18,297
Default Numbering cells vertically in Word 2007

It will always be complicated to number Word tables in any manner other than
that Word intends i.e. left to right. One way would be to insert sequence
SEQ fields in each cell with separate sequences for each column. You can do
this with a macro after you have created your table, but before filling it
e.g.as follows, which will number a table by column no matter how many rows
or columns.
http://www.gmayor.com/installing_macro.htm

Sub NumberCellsByColumn()
Dim oTable As Table
Dim oCell As Range
Dim sSeq As String
Dim i, j As Long
Set oTable = ActiveDocument.Tables(1)
For j = 1 To oTable.Rows.Count
For i = 1 To oTable.Columns.Count
If j = 1 Then
If i 1 Then
sSeq = "Col" & i & " \r" & _
(oTable.Rows.Count * (i - 1) + 1)
Else
sSeq = "Col" & i
End If
Else
sSeq = "Col" & i
End If
Set oCell = oTable.Cell(j, i).Range
oCell.End = oCell.End - 1
oCell.Select
Selection.Fields.Add Selection.Range, _
wdFieldSequence, sSeq, False
Next i
Next j
End Sub

Suzette wrote:
I'm having the same issue. I want to number the first column 1, 2, 3,
4 and the second column 5, 6, 7, 8; not have then number 1-2, 3-4,
etc. I can achieve this by first numbering the first column and then
numbering the second column, and then selecting the numbers in the
second column and changing the start numbering value. But that is an
aweful lot of steps to achieve simple numbering. Any ideas?
Thanks, Suzette

"Graham Mayor" wrote:

Tables are filled left to right, but you can put anything you want
in the cells of a table. What exactly are you trying to achieve?

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



Millie wrote:
Is it possible to number cells vertically instead of horizontally in
Word 2007?



  #5  
Old September 19th, 2008, 02:26 PM posted to microsoft.public.word.tables
Suzette
external usenet poster
 
Posts: 13
Default Numbering cells vertically in Word 2007

Thanks, Graham! Have a great weekend, Suzette

"Graham Mayor" wrote:

It will always be complicated to number Word tables in any manner other than
that Word intends i.e. left to right. One way would be to insert sequence
SEQ fields in each cell with separate sequences for each column. You can do
this with a macro after you have created your table, but before filling it
e.g.as follows, which will number a table by column no matter how many rows
or columns.
http://www.gmayor.com/installing_macro.htm

Sub NumberCellsByColumn()
Dim oTable As Table
Dim oCell As Range
Dim sSeq As String
Dim i, j As Long
Set oTable = ActiveDocument.Tables(1)
For j = 1 To oTable.Rows.Count
For i = 1 To oTable.Columns.Count
If j = 1 Then
If i 1 Then
sSeq = "Col" & i & " \r" & _
(oTable.Rows.Count * (i - 1) + 1)
Else
sSeq = "Col" & i
End If
Else
sSeq = "Col" & i
End If
Set oCell = oTable.Cell(j, i).Range
oCell.End = oCell.End - 1
oCell.Select
Selection.Fields.Add Selection.Range, _
wdFieldSequence, sSeq, False
Next i
Next j
End Sub

Suzette wrote:
I'm having the same issue. I want to number the first column 1, 2, 3,
4 and the second column 5, 6, 7, 8; not have then number 1-2, 3-4,
etc. I can achieve this by first numbering the first column and then
numbering the second column, and then selecting the numbers in the
second column and changing the start numbering value. But that is an
aweful lot of steps to achieve simple numbering. Any ideas?
Thanks, Suzette

"Graham Mayor" wrote:

Tables are filled left to right, but you can put anything you want
in the cells of a table. What exactly are you trying to achieve?

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



Millie wrote:
Is it possible to number cells vertically instead of horizontally in
Word 2007?




 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:59 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.