Share via

Aligning Parallel Paragraphs Within a Table

Anonymous
2022-05-02T15:46:08+00:00

Since texts in different languages occupy unequal amounts of space, I need to know how to put the following parallel paragraphs in different languages on the same levels within the table in Microsoft Word 2021, so that each of the paragraphs may begin at the same level as its parallel in the other language.

Фюзеляж<br><br>Фюзеляж воздушного судна представляет собой цельнометаллическую монококовую каркасную конструкцию, состоящую из стрингеров и обшивки из алюминиевого сплава; вертикальный стабилизатор является неотъемлемой частью фюзеляжа. Моторный отсек отделен от отсека экипажа стальной перегородкой.<br><br>Крыло<br><br>Цельнометаллическое, однолонжеронное крыло прямоугольной формы с дополнительным лонжероном. Крыло оборудовано элеронами и щелевыми закрылками, электрически управляемыми в четырех положениях, с несущими топливными баками. Концевые обтекатели крыла оснащены композитными законцовками.<br><br>Оперение<br><br>Оно состоит из вертикального и горизонтального оперения воздушного судна на конце фюзеляжа. Вертикальное оперение состоит из цельного стабилизатора с правым и левым рулем высоты, которые соединены между собой управляющим главным редуктором. Руль высоты оборудован электрически управляемым триммером. Вертикальное оперение в форме трапеции состоит из вертикального стабилизатора и руля направления Hull<br><br>The aircraft hull is an all-metal monocoque frame structure consisting of stringers and aluminium-alloy casing. The vertical stabilizer is an integral part of the hull. A steel partition separates the engine room from the crew compartment.<br><br>Wing<br><br>An all-metal monospar rectangular wing with an auxiliary spar. The wing is equipped with integral fuel tanks as well as ailerons and slot flaps which are operated electrically in the four states. The wing-tip fairings are equipped with composite wingtips.<br><br>Empennage<br><br>The empennage consists of vertical and horizontal tails at the rear end of the aircraft's hull. The vertical tail consists of a single-piece stabilizer with right and left elevators linked together by the main controlling gearbox. The elevator is equipped with an electrically operated trim tab. The vertical trapezoidal tail consists of a vertical stabilizer and a rudder.
Microsoft 365 and Office | Word | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Jay Freedman 207.7K Reputation points Volunteer Moderator
2022-05-02T18:53:56+00:00

The macro below can create the extra rows and move the parallel paragraphs into the new cells. Before you test it, confirm that the table meets these requirements:

  • Each block (one boldface term and its definition) in both columns consists of exactly two paragraphs. The bold term is one paragraph, and the definition is one paragraph. If a definition consists of two or more paragraphs, replace their paragraph marks (except for the last one) with line breaks, Shift+Enter.
  • There are no extra (blank) paragraph marks in the cells.

See https://www.gmayor.com/installing_macro.htm if needed.

When the macro finishes, you may want to turn off some or all of the table borders. To turn all of them off, the quick way is to press Ctrl+Alt+U. To turn off only the internal borders, use the Borders and Shading dialog (on the Table Design ribbon, click Borders and choose the last entry on the dropdown menu).

Sub SplitTable() 

    Dim tbl As Table 

    Dim intCol1Paras As Integer 

    Dim intCol2Paras As Integer 

    Dim intMovePara As Integer 

    Dim rg As Range 

    If Not Selection.Information(wdWithInTable) Then 

        MsgBox "Put the cursor in the table to work on, then rerun macro." 

        Exit Sub 

    End If 

    Set tbl = Selection.Tables(1) 

    intCol1Paras = tbl.Cell(1, 1).Range.Paragraphs.Count 

    intCol2Paras = tbl.Cell(1, 2).Range.Paragraphs.Count 

    If intCol1Paras <> intCol2Paras Then 

        MsgBox "The numbers of paragraphs in the two columns are not equal." _ 

            & vbCr & "Make them equal and rerun the macro." & vbCr & _ 

            "You may need to replace some paragraph marks with line breaks." 

        Exit Sub 

    End If 

    If intCol1Paras Mod 2 = 1 Then 

        MsgBox "The numbers of paragraphs in the two columns are not even." _ 

            & vbCr & "Make them even and rerun the macro." & vbCr & _ 

            "You may need to replace some paragraph marks with line breaks." 

    End If 

    For intMovePara = 3 To intCol1Paras - 1 Step 2 

        tbl.Rows.Add ' defaults to end of table 

        Set rg = tbl.Cell(1, 1).Range.Paragraphs(3).Range 

        rg.MoveEnd wdParagraph, 1 

        If rg.End = tbl.Cell(1, 1).Range.End Then rg.MoveEnd wdCharacter, -1 

        tbl.Cell(tbl.Rows.Count, 1).Range.FormattedText = rg.FormattedText 

        rg.Select 

        rg.Delete 

        Set rg = tbl.Cell(1, 2).Range.Paragraphs(3).Range 

        rg.MoveEnd wdParagraph, 1 

        If rg.End = tbl.Cell(1, 2).Range.End Then rg.MoveEnd wdCharacter, -1 

        tbl.Cell(tbl.Rows.Count, 2).Range.FormattedText = rg.FormattedText 

        rg.Select 

        rg.Delete 

    Next intMovePara 

End Sub

Was this answer helpful?

0 comments No comments

7 additional answers

Sort by: Most helpful
  1. Charles Kenyon 167.8K Reputation points Volunteer Moderator
    2022-05-02T17:03:33+00:00

    No. That is the purpose of multiple rows.

    Note, you do not have to have borders between rows.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2022-05-02T16:41:39+00:00

    You need the parallel definitions/paragraphs to be in separate rows of your table.

    Yes, I understand that texts can be aligned by splitting a table into rows. But I need to know how to align parallel texts in two columns but within a single row. Is there a way to do this?

    Was this answer helpful?

    0 comments No comments
  3. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  4. Charles Kenyon 167.8K Reputation points Volunteer Moderator
    2022-05-02T16:04:28+00:00

    You need the parallel definitions/paragraphs to be in separate rows of your table.

    You currently have:

    Term 1 ahusraceuh ucrcha uarcoehu arcoeuh arucsharsh usrch psrc,a eontuh rcauhrsaeuscruhsoruhcrsohuesrcau rcsusrhuosrch uRChscr.SRCHUSR.scrusrc.r<br><br><br><br>Term 2 cahuac,h.puasrhsar,.uch,n.h rc.rch c.hhaseuhnthUR,C. auha .ca utha,.han.husruh aods,r.c<br><br>asrhuarcoh.<br><br>hrsa,h.hu Term1 shruae haec<br><br><br><br>Term 2 cauha p arc.uh raseuh scr,a.cuh usahu. psrc,.hu srcuesrchu .rsc,h,SHUHSRH

    where you have two columns and a single row. What you need is:

    Term 1 ahusraceuh ucrcha uarcoehu arcoeuh arucsharsh usrch psrc,a eontuh rcauhrsaeuscruhsoruhcrsohuesrcau rcsusrhuosrch uRChscr.SRCHUSR.scrusrc.r Term1 shruae haec
    Term 2 cauha p arc.uh raseuh scr,a.cuh usahu. psrc,.hu srcuesrchu .rsc,h,SHUHSRH Term 2 cauha p arc.uh raseuh scr,a.cuh usahu. psrc,.hu srcuesrchu .rsc,h,SHUHSRH

    Was this answer helpful?

    0 comments No comments