That works perfect, but still only works when the document isnt protected, when i print to run the macro while the document have protection from editing i get the msg:
"This method or property is not available because the document is locked for editing"
Any idea to solve this or perhaps im not using the code properly?
|