excel - How to get full height and width of range, including borders? -
i can't seem find answer anywhere.
in vba, given dim r range: set r = range("c20:c21")
can r.height
, r.width
, former combined height of cells c20 , c21 doesn't include size of borders in between them.
is there reliable method of obtaining full combined height , width (e.g.: height , width of cells + size of borders in between cells) ?
thanks.
i think calculation should
testcb.top = testcb.top + ((r.height - testcb.height) / 2))
or rather (not sure version means)
testcb.top = r.top + ((r.height - testcb.height) / 2))
Comments
Post a Comment