Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!
<customUI onLoad="rxIRibbonUI_onLoad_LK1" xmlns="http://schemas.microsoft.com/office/2009/07/customui">
Option Explicit Private RibbonUI As IRibbonUI Private Sub rxIRibbonUI_onLoad_LK1(ribbon As IRibbonUI) Set RibbonUI = ribbon End Sub Private Sub ProtectForm(control As IRibbonControl, Pressed As Boolean) If Documents.Count > 0 Then If Pressed Then If ActiveDocument.ProtectionType = wdNoProtection Then ActiveDocument.Protect wdAllowOnlyFormFields End If Else ActiveDocument.Unprotect End If End If RibbonUI.InvalidateControl "FormFields_Btn6" End Sub Public Sub FormFields_Btn6_getPressed(control As IRibbonControl, ByRef returnedVal) If Documents.Count > 0 Then returnedVal = (Not ActiveDocument.ProtectionType = wdNoProtection) End If End Sub Public Sub FormFields_Btn6_getImage(control As IRibbonControl, ByRef returnedVal) returnedVal = "Lock" End Sub
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.