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

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. puzzled

    change row height througout the table

    puzzled, Nov 30, 2003, in forum: Word Tables
    Replies:
    1
    Views:
    154
    Suzanne S. Barnhill
    Nov 30, 2003
  2. Wellspan
    Replies:
    1
    Views:
    107
    Suzanne S. Barnhill
    Oct 21, 2004
  3. Stephanie T.

    Row height problem with table in table

    Stephanie T., Nov 23, 2004, in forum: Word Tables
    Replies:
    0
    Views:
    100
    Stephanie T.
    Nov 23, 2004
  4. MCR
    Replies:
    1
    Views:
    98
    Cindy M -WordMVP-
    Dec 14, 2004
  5. Walter Wood

    Gobally Modify Table Row Height

    Walter Wood, Mar 10, 2005, in forum: Word Tables
    Replies:
    4
    Views:
    117
    Walter Wood
    Mar 11, 2005
  6. eob

    Row Height Not Adjusting

    eob, Jul 6, 2006, in forum: Word Tables
    Replies:
    1
    Views:
    87
  7. Trish

    Word 2003 - adjusting row heiht

    Trish, Aug 13, 2007, in forum: Word Tables
    Replies:
    2
    Views:
    89
    Trish
    Aug 13, 2007
  8. talkinglens

    Adjusting width of 1 cell in a row in a table

    talkinglens, Dec 1, 2009, in forum: Word Tables
    Replies:
    2
    Views:
    131
    Suzanne S. Barnhill
    Dec 1, 2009
Loading...