RickXL posted a great code that uses vba to change the row height of the selected row. See Code:
I essentially just use this code to make the selected record more readable due to the long entries that some of the cells contain. The only drawback from this code is that it clears the undo stack from excel so any time that I have a selection change it is permanent. Is there a work around that would allow me to keep the undo stack?
VBA Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Static iRow As Long
If Target.Rows.Count > 1 Then Exit Sub
If iRow > 0 Then
Rows(iRow).Rowheight = 20
End If
iRow = Target.Row
Target.RowHeight = 40
End Sub
I essentially just use this code to make the selected record more readable due to the long entries that some of the cells contain. The only drawback from this code is that it clears the undo stack from excel so any time that I have a selection change it is permanent. Is there a work around that would allow me to keep the undo stack?