Toggle custom button in ribbon for new mailing in Outlook 2010

I created a new custom button that sets the sensitivity to privacy.

I want the button to be able to do the following:

  • Toggle the option each time the button is clicked (sets and disables confidential tag).
  • Highlighted when the sensitivity setting is currently set to "Confidential" (same behavior for setting the "high importance" tag.

...

Sub setConfidential()

ActiveInspector.CurrentItem.Sensitivity = olConfidential

End Sub

      

+3


source to share


1 answer


Re: Toggle the option every time the button is clicked (sets and disables confidential tag).



Sub ToggleSensitivity()
    if ActiveInspector.CurrentItem.Sensitivity = olConfidential then
        ActiveInspector.CurrentItem.Sensitivity = olNormal
    else
        ActiveInspector.CurrentItem.Sensitivity = olConfidential
    end if
End Sub

      

0


source







All Articles