Hey, Folks! I want to colum width automatically in my excel sheet looks like this
and I want to change look like this
I save this but I close the excel and I open never change
I would advise saving the document as the Excel-macro one .xslm.
Next open Developer and select Visual Basic. If you don't have the one, customize your ribbon: https://wellsr.com/vba/excel/enable-developer-tab/
In the VBA Excel project find the sheet you are working on
Provide the VBA code like this:
Private Sub Worksheet_SelectionChange(ByVal Target As Range) Columns("C").ColumnWidth = 15 End Sub
https://docs.microsoft.com/en-us/office/vba/api/excel.range.columnwidth
Every time you open this sheet it should be as wide as you defined in the code.
1.4m articles
1.4m replys
5 comments
57.0k users