‎2020 Jun 17 7:57 AM
How to set the property adaptive column width
‎2020 Jun 17 8:59 AM
Sorry, but do you understand that you question has no relation to the tag
Just the word Excel?
‎2020 Jun 17 9:15 AM
Hello shero_yy
Have a look at this answer: https://answers.sap.com/answers/7482831/view.html
Kind regards,‎2020 Jun 17 10:11 AM
Why don't you run Excel, start the recording of macro and do the actions, that gives you the below code, that you simply translate to ABAP (see answer by Mateusz if you don't understand the relationship between VBA and ABAP OLE statements):
Cells.Select
Cells.EntireColumn.AutoFit