It is difficult to understand what your code is supposed to do without access to the tables, the values fed to the macro and the additional function.
There is no reference to which table you are working with at any time nor which document you are working in.
However from what you have presented, what is the point of any of the Else branch?
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
|