The code you have above is the default settings for any printing and is not really needed. Have you tried to remove this code and see if you get asked still.
If you do need this code, you could set it up within an excel addin and therefore would effect all workbooks and would not require enabling.
Check the left hand side of your screen, where the project names should be listed, when looking at the macro coding in VB. If you have more than 1 file,(ie. Document1, Document2, etc.) then click on the plus sign - Microsoft Word Objects plus sign - and double click on ThisDocument. This should bring up each individual window of coding. Delete any coding in those windows.
Also, in the document window,(outside of the coding) go to Tools - Macro - Macros - highlight any macros in the window, and hit the delete key.
Hope it works for you.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.