View Single Post
 
Old 09-20-2019, 07:38 AM
gmaxey gmaxey is offline Windows 10 Office 2016
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,429
gmaxey is a jewel in the roughgmaxey is a jewel in the roughgmaxey is a jewel in the roughgmaxey is a jewel in the rough
Default

So you image doesn't show:

Code:
Sub Prot(strPW As String)   'A basic Word macro coded by Greg Maxey   ActiveDocument.Protect wdAllowOnlyFormFields, True, strPW End Sub Sub UnProt(strPW As String)   'A basic Word macro coded by Greg Maxey   If ActiveDocument.ProtectionType <> wdNoProtection Then     ActiveDocument.Unprotect strPW   End If End Sub

Where did you put them?  Put them in your userform module with the command button code.
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote