The macro purports to provide the functionality that your original macro failed to provide. However have not seen your document and only have a vague idea of what you are trying to do based on that original macro.
The issues that you mention can be addressed, by setting the range and its values appropriately, but unless we know exactly what you have and what you want to get from it, we are simply shooting in the dark.
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
|