All that line does is add the hyphen between the >< characters where it was apparently missing. It has no other effect and when removed the macro ignores those lines as requested and works correctly with your example document and the additional examples. Are you sure that was the onloy line you deleted? Copy the code again and simply put an apostrophe at the beginning of the line for the code to ignore it.
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
|