AutoFit column width Excel ActiveX
For Excel columns automatically acquire the necessary width to avoid showing "###", characters can use the following function in the Workbook:
Workbook_SheetChange Private Sub (ByVal Sh As Object, ByVal Target As Range) End Sub
Sh.UsedRange.Columns.AutoFit
Other options are:
Private Sub Worksheet_Change (ByVal Target As Range) Dim cell As Range
For Each cell In
Target.Cells cell.EntireColumn.AutoFit
Next cell End Sub Private Sub
Worksheet_Change (ByVal Target As Range) End Sub
UsedRange.Columns.AutoFit
Thus when any cell in any sheet change its width, the column will be adjusted to make visible all the values \u200b\u200byou have.
Related articles:
http://circulotito.blogspot.com/2008/06/tildes-en-archivos-bat-en-smbolo-del.html
0 comments:
Post a Comment