TextFrame.ValidLinkTarget Method
Word Developer Reference |
Determines whether the text frame of one shape can be linked to the text frame of another shape. .
Syntax
expression.ValidLinkTarget(TargetTextFrame)
expression Required. A variable that represents a TextFrame object.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
TargetTextFrame | Required | TextFrame | The target text frame to which you want to link the text frame returned by expression. |
Return Value
Boolean
Remarks
This method returns True if TargetTextFrame is a valid target and returns False if TargetTextFrame already contains text, is already linked, or if the shape doesn't support attached text.
Example
This example checks to see whether the text frames for the first and second shapes in the active document can be linked to one another. If so, the example links the two text frames.
Visual Basic for Applications |
---|
|
See Also