|
#1
|
|||
|
|||
Creating a Password Protected Template with Macros
Hello All, I am trying to create a password protected template with a macro in MS Word 2016, and I'm having a bit of difficulty. I've found methods for this in versions up to Word 2003, but I can't find it for versions after. Suggestions? |
#2
|
|||
|
|||
What is it you are trying tho protect with the password? The vba code?
|
#3
|
|||
|
|||
I'm trying to keep the entirety of the document static apart from form fields. The macro is a spell checker for the form fields.
So I suppose I'm restricting editing with password protection as opposed to creating 'a password protected template'. And yes, I would still prefer to save the document as a template. |
#4
|
||||
|
||||
Since you're using formfields, you'll need to apply Word's 'filling in forms' protection, which can take a password. If you do that, your spell-check macro will need access to that so the form can be unprotected for spell-checking purposes. You can add the forms protection password to the code so no-one needs to have access to it to run your spell-check macro. Your VBA project, too, can be password protected so no-one else can open that to view the password used for the forms protection.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
Tags |
macros, restrict editing, templates |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Macros don't work in password protected file. | Auto | Excel Programming | 2 | 06-29-2016 12:17 AM |
creating a content control that is password protected | kawtharz | Word VBA | 5 | 08-21-2015 12:50 AM |
When creating new template from established template macros getting lost. | TechEd | Word | 3 | 06-09-2014 07:22 PM |
Password protected file no longer offers password dialog on Open | htaylor | Word | 0 | 10-15-2013 12:35 PM |
Creating document from template but macros are still linked to template | webharvest | Word | 0 | 07-16-2011 09:34 AM |