Hello everyone
I am currently trying to autosize the row height of a range of cells using the VB code I have entered below. The code works great but when I print my document some of the text in the cells is slightly cut off. I was hoping someone could be so kind as to show me how to modify my code below to add a buffer of say 5 to the already autosized row height. I've tried a few different ways based on other postings on the net and have been unsuccessful in doing so.
Thank you very much in advance!
P.S. I am new to this forum so I apologize if the way I posted my code is incorrect.
Private Sub Worksheet_Activate()
Application.EnableEvents = False
Me.Rows("6:1000").AutoFit
Application.EnableEvents = True
End Sub
I am currently trying to autosize the row height of a range of cells using the VB code I have entered below. The code works great but when I print my document some of the text in the cells is slightly cut off. I was hoping someone could be so kind as to show me how to modify my code below to add a buffer of say 5 to the already autosized row height. I've tried a few different ways based on other postings on the net and have been unsuccessful in doing so.
Thank you very much in advance!
P.S. I am new to this forum so I apologize if the way I posted my code is incorrect.
Private Sub Worksheet_Activate()
Application.EnableEvents = False
Me.Rows("6:1000").AutoFit
Application.EnableEvents = True
End Sub