var oTable = pMe;
var nRows, iRow;
if (nRows > 20)
{
for (iRow = 21; iRow < nRows; iRow++)
{
oTable.RemoveRow(-1);
}
}
else
{
if (nRows < 20)
{
for (iRow = nRows; iRow < 19; iRow++)
{
oTable.InsertRow(-1);
}
}
}
oTable.RowFirstVisible = oTable.FixedRows;
oTable.ColFirstVisible = oTable.FixedCols;