Set the column width for excel

RogerRoger Member Posts: 57
I'm trying to write an export to excel with the excel buffer table. But I don't know how I can set the width for a specific column in excel.

Could anyone helps me? Many thanks.
Many thanks, Roger

Comments

  • garakgarak Member Posts: 3,263
    You can use the function AutoFit() <- this is used in the EXCELBuffer table or for a defined column the property ColumnWidth (to find under ExcelRange or ExcelWorkSheet.Range)
    Do you make it right, it works too!
  • RogerRoger Member Posts: 57
    Thanks for the answer. But autofit works for all columns in the sheet. I want to set the width only for one specific column. Is this possible?
    Many thanks, Roger
  • garakgarak Member Posts: 3,263
    for a defined column the property ColumnWidth (to find under ExcelRange or ExcelWorkSheet.Range)
    Do you make it right, it works too!
  • RogerRoger Member Posts: 57
    That works well, many thanks!
    Many thanks, Roger
  • garakgarak Member Posts: 3,263
    No problem, and welcome
    Do you make it right, it works too!
Sign In or Register to comment.