The code should go in a new VBA module.
Select a message and run the macro TestPrint from the VBA editor.
If Sleep needs to be changed you will get an error message about the missing file.
Do you get any other error messages? Try commenting out the on error lines and see if that prompts a crash..
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
|