Where does the data come from that fills the two used rows, or how is the number of used rows determined? If the data is being added by a macro process, as seems to be the case, then it would probably be better to begin with all the cells filled with characters and overwrite them as required with the process.
Ensuring that the random number of cells are not themselves overwritten by someone is a different issue and questions the reason for using an editable format in the first place. If you don't want users to edit the table manually then take that away from them by converting to (say) pdf or make the document read only.
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
|