I am using VBA in Excel for Microsoft 365.
I wish to obtain the default column width and store it in a Double
variable. This is driven by the desire to not hardcode it. I have attempted to obtain this value as follows:
Dim ws As Worksheet
Set ws = ThisWorkbook.Worksheets.Add(After:=ThisWorkbook.Worksheets(ThisWorkbook.Worksheets.Count))
Dim columnStandardWidth As Double
columnStandardWidth = ws.StandardWidth
However, this returns a value of 8.11 rather than the expected 8.43.
I have two questions:
- How may I obtain the proper value of 8.43?
- What does the column width of 8.11 represent?