It will help you if you add Option Explicit to the top of your modules (you can do this automatically from the VBA Editor > Tools > Options > Require Variable Declaration). Then from the Debug Menu > Compile Normal
This will show the obvious variable errors. Fix those and you may be getting somewhere.
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
|