In that case it should work as quoted in the web page (albeit you need to change the code to reflect the correct command button).
See the attached example (you will have to allow the macro to run the code). Click the print button and see what happens in the printout. (You won't see a change on screen).
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
|