Thursday, October 28, 2010

How can I stop my table row numbers from changing after deleting a row?

I have a table in Word that has 9 rows..I have written some code in VBA to delete certain rows when a button is pressed. The problem is that when a row is deleted in the table, it re-numbers my remaining rows. Any suggestions on how to work around this??How can I stop my table row numbers from changing after deleting a row?
There's no way to keep the row numbers from changing on a delete or an insert. I suggest you look into making your VBA code smarter, possibly through the use of a named range rather than a fixed row number. That would make the reference move with the renumbering.



Hope that helps.

No comments:

Post a Comment