Label Property

Microsoft Word Visual Basic

Label Property

       

Returns a string that's used to identify the portion of the source file that's being linked. For example, 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. Read-only String.

Note   This property works only for shapes, inline shapes, or fields that are linked OLE objects.

expression.Label

expression   Required. An expression that returns an OLEFormat object.

Example

This example returns the label for the first field in the active document.

MsgBox ActiveDocument.Fields(1).OLEFormat.Label