Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我创建了一个新的自定义按钮,将敏感度设置为机密。
我希望按钮能够执行以下操作:
.
Sub setConfidential() ActiveInspector.CurrentItem.Sensitivity = olConfidential End Sub
回复:每次按下按钮时切换设置(设置和取消设置机密标签)。
Sub ToggleSensitivity() if ActiveInspector.CurrentItem.Sensitivity = olConfidential then ActiveInspector.CurrentItem.Sensitivity = olNormal else ActiveInspector.CurrentItem.Sensitivity = olConfidential end if End Sub