Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
175
Autofit columns in Excel sheet
posted

Before I save the worksheet, I would like to autofit the columns to the largest data item in the cell.  How can I do this?

  • 175
    posted

    I did some more digging and found what I was looking for:

    worksheet1.Columns[0].Width = 3000;