![]() |
#1
|
|||
|
|||
![]()
Hey Guys, I've been using this macro for many years to protect form fields when updating them-until now. Suddenly in 365 this macro does not work. It does not select all the text in the doc, nor does it update the fields. Has there been a change in the VBA code language? Here's the macro-
Code:
Sub UpdateAllFields() ' UpdateAllFields Macro If ActiveDocument.ProtectionType = wdNoProtection Then ActiveDocument.Protect Type:=wdAllowOnlyFormFields, NoReset:=True End If If ActiveDocument.ProtectionType <> wdNoProtection Then ActiveDocument.Fields.Update ActiveDocument.Unprotect End If End Sub |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to protect cells and still be able to use all data entry form | Jae | Excel | 2 | 11-13-2019 05:32 PM |
![]() |
strodden | Word | 2 | 08-28-2017 07:01 AM |
Macro to keep formatted form fields after mail merge or replace text with formatted form fields | jer85 | Word VBA | 2 | 04-05-2015 10:00 PM |
![]() |
wwwKris | Word | 1 | 08-29-2014 07:03 AM |
Protect certain parts of a form | --emma-- | Word | 0 | 07-20-2010 12:27 PM |