LabelInfo object (Office)
Represents the label information data object.
Remarks
The LabelInfo object can be passed to SetLabel method of SensitivityLabel object.
Example
The following example shows the usage of members of LabelInfo object.
Sub SetLabelInfo()
Dim myLabelInfo As Office.LabelInfo
Set myLabelInfo = Application.ActiveDocument.SensitivityLabel.CreateLabelInfo()
With myLabelInfo
.ActionId = "5cc46055-305d-4bc1-8f5f-5edf82231378"
.AssignmentMethod = MsoAssignmentMethod.PRIVILEGED
.ContentBits = 4
.IsEnabled = True
.Justification = "Some justification needed only if downgrading label."
.LabelId = "9203368f-916c-4d59-8292-9f1c6a1e8f39"
.LabelName = "MyLabelName"
.SetDate = Now()
.SiteId = "6c15903a-880e-4e17-818a-6cb4f7935615"
End With
End Sub
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.