TextRange.InsertBefore Method
PowerPoint Developer Reference |
Appends a string to the beginning of the specified text range. Returns a TextRange object that represents the appended text. When used without an argument, this method returns a zero-length string at the end of the specified range.
Syntax
expression.InsertBefore(NewText)
expression A variable that represents a TextRange object.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
NewText | Optional | String | The text to be appended. The default value is an empty string. |
Example
This example appends the string "Test version: " to the beginning of the title on slide one in the active presentation.
Visual Basic for Applications |
---|
|
This example appends the contents of the Clipboard to the beginning of the title on slide one in the active presentation.
Visual Basic for Applications |
---|
|
See Also