Formatting Questions

  • Thread starter Thread starter Kevin
  • Start date Start date
K

Kevin

I am having trouble formatting a spreadsheet on the fly
for printing. Is there a way to programatically set the
row height to automatic through code. I would prefer this
to guessing using code like the following:

With Worksheets("Sheet1").Rows(39)
.RowHeight = .RowHeight * 2
End With

I would rather have it autoexpand depending on what is in
the row.

Thanks in advance for you help!

Kevin
 
Sub CCCC()
With Worksheets("Sheet1").Rows(39)
.AutoFit
End With
End Sub
 

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

Ask a Question

Back
Top