OLEFormat.Label property (Word)
Returns a string that's used to identify the portion of the source file that's being linked. Read-only String.
Syntax
expression. Label
expression An expression that returns an 'OLEFormat' object.
Remarks
If the source file is a Microsoft Excel workbook, the Label property might return "Workbook1!R3C1:R4C2" if the OLE object contains only a few cells from the worksheet.
This property works only for shapes, inline shapes, or fields that are linked OLE objects.
Example
This example returns the label for the first field in the active document.
MsgBox ActiveDocument.Fields(1).OLEFormat.Label
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.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for