B
Benjamino5
I need to determine if a cell is last in a table, but I can't check the
ColumnIndex because the tables don't have consistent cell widths, so it gives
me an error. Here's the old code that uses ColumnIndex:
CellIsLast = IIf((theCell.Range.Information(wdStartOfRangeColumnNumber) =
theTable.Columns.Last.Index _
And theCell.Range.Information(wdStartOfRangeRowNumber) =
theTable.Rows.Last.Index), True, False)
What I need to do now is determine if "theCell" is in the last row of the
table AND that it is the last cell in that row.
How can I tell where a cell is in a row? I feel like this should be very
simple, but I'm just not seeing it, so code samples would be very greatly
appreciated.
Thanks!
Ben
ColumnIndex because the tables don't have consistent cell widths, so it gives
me an error. Here's the old code that uses ColumnIndex:
CellIsLast = IIf((theCell.Range.Information(wdStartOfRangeColumnNumber) =
theTable.Columns.Last.Index _
And theCell.Range.Information(wdStartOfRangeRowNumber) =
theTable.Rows.Last.Index), True, False)
What I need to do now is determine if "theCell" is in the last row of the
table AND that it is the last cell in that row.
How can I tell where a cell is in a row? I feel like this should be very
simple, but I'm just not seeing it, so code samples would be very greatly
appreciated.
Thanks!
Ben