Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 2 of 2

Thread: auto adjust row height

  1. #1
    Board Regular
    Join Date
    Feb 2002
    Location
    Arizona
    Posts
    72
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    assuming the column width is fixed, and text can wrap in the cells. Is there a way to have the sheet automatically autofit the row heights when the values in the cells change because their precendents change? Thanks.

  2. #2
    Board Regular
    Join Date
    Feb 2002
    Location
    Georgia USA
    Posts
    569
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Not automatic but you can go to format, row, AutoFit

    You could use this marco put it in your sheet code and change the range to fit

    Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
    Range("A:A").Rows.AutoFit
    End Sub


    [ This Message was edited by: paul b on 2002-03-05 20:12 ]

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •