It is only significant in that it wasn't in the selection I pasted.
Option Explicit forces you to declare your variables. It is good to include it and can help when debugging. You can get the VBA editor to add it automatically to your new modules, by setting the option in Tools > Options > Editor.
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
|