Hello, first post so apologies for any bloopers.

Using two macros to unlock and re-lock a document to EnforceStyleLock protection (limit formatting to permitted styles).
Unlock macro works fine from both VB editor and Word application.

Lock macro Works fine from within VB editor.
Soon as I try and run it from Word application get the "Argument not Optional" error message.

Sub DocLock()
ActiveDocument.Protect Type:=wdNoProtection, NoReset:=True, Password:="passwordstring", UseIRM:=False, EnforceStyleLock:=True
End Sub

Any thoughts greatly appreciated.

Kind regards,
patricus