A family of Microsoft word processing software products for creating web, email, and print documents.
What type of Editing Restriction did you apply to the document?
With some of them, it is not possible to run macros from the user interface so you would need to assign the macro to the keyboard or to the Quick Access Toolbar.
Alternatively, if you use FIle>Print and then close the backstage print view, that will cause the fields in the document to be updated.
Hi Doug,
Whenever I run below macro - (.Execute Replace:=wdReplaceAll) this line showing error.
Sub ChangeLinkPath()
Dim rg As Range
Set rg = ActiveDocument.Range
rg.TextRetrievalMode.IncludeFieldCodes = True
With rg.Find
.Text = InputBox("Old path and file name", "Old Path and File Name")
.Replacement.Text = InputBox("New path and file name", "New Path and File Name")
.Execute Replace:=wdReplaceAll
End With
ActiveDocument.Fields.Update
End Sub
and I am using this mode for restrict editing, comments and wherever I selected Exceptions, that area only editable. Rest of the document editing locked. User have only rights to give comments and Edit only in Exception area.
If I am not choosing Start Enforcing Protection, these macro run perfectly but I need password for the document. And after I choose Yes, Start Enforcing Protection and insert password, these macro showing error "4605", and .Execute Replace:=wdReplaceAll line showing error.