H
heenchi
I want to make a table with different columns widths on different row
using VBA code. The width of the whole table should also be fixed.
I've tried using the following code:
Selection.Cells.PreferredWidth = CentimetersToPoints(4.7)
It turns out that if I try to make the cell narrower nothing happen
and if I set it to be wider the whole table width will grow larger...
What I want to do is simple to do by using the mouse, then its just t
grab on to the cell border and drag it. The column width will the
resize and the whole table width will stay the same.
But how to do this in VBA code
using VBA code. The width of the whole table should also be fixed.
I've tried using the following code:
Selection.Cells.PreferredWidth = CentimetersToPoints(4.7)
It turns out that if I try to make the cell narrower nothing happen
and if I set it to be wider the whole table width will grow larger...
What I want to do is simple to do by using the mouse, then its just t
grab on to the cell border and drag it. The column width will the
resize and the whole table width will stay the same.
But how to do this in VBA code