Adjusting table row height in code

Discussion in 'Word Tables' started by Wotme, Jul 13, 2012.

  1. Wotme

    Wotme Guest

    Can anyone help with some code I could use to adjust the row height in
    table


    --
    Wotme
     
    Wotme, Jul 13, 2012
    #1
    1. Advertisements

  2. Wotme

    Stefan Blom Guest

    If you are saying that you want to set a fixed row height, the following
    code should be helpful:

    With ActiveDocument.Tables(1).Rows(1)
    .HeightRule = wdRowHeightExactly
    .Height = InchesToPoints(0.5)
    End With

    The macro sets the height of the first row in the first table of the
    active document to 0.5".

    Stefan Blom
    Microsoft Word MVP





    On 2012-07-13 14:13, Wotme wrote:
    > Can anyone help with some code I could use to adjust the row height in a
    > table.
    >
    >
    >
    >
     
    Stefan Blom, Jul 13, 2012
    #2
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.