SensitivityLabel.GetLabel method (Office)
Gets the current label information that exists on the document for the user.
Note
If the SensitivityLabelPolicy.CompleteInitialize was called, it gets the label for the user that was passed with UserId otherwise gets the label for the user which is authenticated to the document.
Syntax
expression.GetLabel ()
expression A variable that represents a SensitivityLabel object.
Return value
Example
The following example shows the usage of GetLabel method.
Dim myLabelInfo As Office.LabelInfo
Set myLabelInfo = ActiveDocument.SensitivityLabel.GetLabel()
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.