J
JBusby
Is there any way to justify a block of text (vertically) in a table cell
using VBA?
using VBA?
JBusby said:Is there any way to justify a block of text (vertically) in a table cell
using VBA?
JBusby said:Thanks for responding, Jonathan.
Your response provides me with the perfect comment to describe the coding
itself. But my attempts at "the coding itself" - without much knowledge or
experience in VBA - haven't been very successful.
By recording a macro, I was able to copy the code that seemed relevant to
the task, but to no avail:
JBusby said:Hello, and thanks, Jean-Guy.
My expectations were:
(1) that a table cell could be vertically justified independently of another
cell - or nested table - in the same row, and
(2) that my page layout would have vertical alignment in a table cell behave
in the same way as vertical alignment in Page Setup - with the vertical
alignment of text on the last line of every page occurring exactly at the
bottom margin.
The cell contained text only. The adjoining cell in the same row contained a
nested table with an in-line graphic.
The row was formatted with
"Specify Height" checked,
"Row Height is: At Least", and with
"Allow Row to Break across Pages" checked.
The Column Dialogue Box showed "Preferred Width" checked, and I changed the
"Measure In:" setting to Percent.
The code you suggested works fine for "Top", "Center", and "Bottom"
settings for vertical alignment, but substituting "Justify" for any of these
in the code results only in the active table cell being "high-lighted."