R
Ricardo Smith
I want to resize a table in VBA to fit the page. But I
can't get the height of a cell/row. I just get 9999 to
infinity. (and beyond)
Is this a bug or am I not
referencing it correctly? Heres a snippet of code.
Set oTable = Selection.Tables(1)
iCellHeight = oTable.Cell(1).Height
My plan was to loop through the table to get the table
height then rezise the the last cellso it stretches to the
bottom of the page and then do a "distribute rows" etc.
Alternative methods would be welcome.
can't get the height of a cell/row. I just get 9999 to
infinity. (and beyond)
referencing it correctly? Heres a snippet of code.
Set oTable = Selection.Tables(1)
iCellHeight = oTable.Cell(1).Height
My plan was to loop through the table to get the table
height then rezise the the last cellso it stretches to the
bottom of the page and then do a "distribute rows" etc.
Alternative methods would be welcome.