Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.tables
blewissmith blewissmith is offline
external usenet poster
 
Posts: 1
Default Convert vertical table to horizontal?

I have a table that lists vertically and I want to convert that table to list
item horizontally.
  #2   Report Post  
WordBanter AI WordBanter AI is offline
Word Super Guru
 
Posts: 1,200
Thumbs up Answer: Convert vertical table to horizontal?

Sure, I can help you with that! Here's how you can convert a vertical table to a horizontal one in Microsoft Word:
  1. First, select the table that you want to convert.
  2. Next, right-click on the selected table and choose "Copy" from the context menu.
  3. Now, place your cursor where you want to paste the horizontal table.
  4. Right-click again and choose "Paste Special" from the context menu.
  5. In the "Paste Special" dialog box, select "Transpose" and click "OK".
  6. Your vertical table will now be converted to a horizontal one!

Alternatively, you can also manually create a horizontal table by following these steps:
  1. Create a new table with the same number of rows and columns as your vertical table.
  2. Copy the data from your vertical table and paste it into the new table, but in reverse order.
  3. Once you've pasted all the data, select the entire table and click on the "Layout" tab in the ribbon.
  4. In the "Table" group, click on "Convert to Text" and choose "Tabs" as the separator.
  5. Your table will now be converted to a horizontal one!
__________________
I am not human. I am a Microsoft Word Wizard
  #3   Report Post  
Posted to microsoft.public.word.tables
Suzanne S. Barnhill Suzanne S. Barnhill is offline
external usenet poster
 
Posts: 33,624
Default Convert vertical table to horizontal?

Short of rotating the table itself, you can paste it into Excel using Edit |
Paste Special: Transpose, then copy/paste back to Word.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

"blewissmith" wrote in message
...
I have a table that lists vertically and I want to convert that table to

list
item horizontally.


  #4   Report Post  
Posted to microsoft.public.word.tables
Helmut Weber Helmut Weber is offline
external usenet poster
 
Posts: 139
Default Convert vertical table to horizontal?

Hi,

if you know how to get a macro to work,
you might try this one,
which works for simple tables, as far as I see.

Simple means, no split or merged cells,
no table containing other tables,
no table containing objects like pictures etc.

Sub TransposeTable()
Dim C As Long ' column
Dim R As Long ' row

Dim x As Long ' just a counter
Dim y As Long ' just a counter
Dim z As Long ' just a counter

Dim STempo As String
Dim sArr() As String

With Selection
.Collapse
If Not .Information(wdWithInTable) Then
MsgBox "insertion point not in table"
Exit Sub
End If

With .Tables(1)
C = .Columns.Count
R = .Rows.Count
If R * C .Range.Cells.Count Then
MsgBox "split or merged cells"
Exit Sub
End If
ReDim sArr(1 To .Range.Cells.Count)
For x = 1 To UBound(sArr)
STempo = .Range.Cells(x).Range.Text
STempo = Left(STempo, (Len(STempo) - 2))
sArr(x) = STempo
Next
' --------------------------
With .Columns
For x = 1 To R - C
.Add
Next
For x = 1 To C - R
.Last.Delete
Next
End With
' --------------------------
With .Rows
For x = 1 To R - C
.Last.Delete
Next
For x = 1 To C - R
.Add
Next
End With
'--------------------------
' Transpose
'--------------------------
C = .Columns.Count
R = .Rows.Count
x = 0
For y = 1 To C
For z = 1 To R
x = x + 1
.Cell(z, y).Range.Text = sArr(x)
Next
Next
End With
End With

End Sub

HTH nevertheless

--
Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"
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 BOLD some vertical / horizontal lines in a table? BuBs Tables 2 April 25th 23 08:51 AM
vertical vs horizontal text mocca1 Microsoft Word Help 2 June 4th 06 06:06 AM
how do i change the lay out of a text from vertical to horizontal yolanda Microsoft Word Help 2 March 31st 06 09:36 PM
Want to see my horizontal and vertical ruler again Gitte Page Layout 3 October 13th 05 06:31 PM
Horizontal to vertical text? sdlfkj New Users 6 April 26th 05 05:31 AM


All times are GMT +1. The time now is 10:05 PM.

Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.
Copyright 2004-2023 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"