fornj.blogg.se

How to lock text in word
How to lock text in word












how to lock text in word

'This is to create a PDF of the document as it appears - to get around Microsoft Word 2010's native behaviour. 'The function of this script is to export a PDF of the active document WITHOUT updating the fields.

how to lock text in word

Showing you my code below, how can I identify all fields in all sections? Will this have to be done using the Index facility? Sub CPE_CustomPDFExport() I have come up against an issue where I can identify and lock all fields in the headers/footers (which is actually what I'm trying to do) but to make it more robust, need to find out a way to lock ALL FIELDS in ALL SECTIONS. To get around this, I am writing a macro solution which locks the fields, exports the document as a PDF and then unlocks the fields again. We are just trying to create a true PDF version of whatever the original document has in it. Subsequently, when users want to make a PDF of an old document, using the Save As PDF function of Office 2010, the Save Date is updated - creating a PDF of the old document, but with today's date. The problem I have got is that my corporate template set uses a SaveDate field in the footer of every word document - which is used to detail when the document was saved, which ties in with our custom document management system.














How to lock text in word