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. PowerPoint Object Model Reference Support and feedback The following example adds a new slide with a bulleted list slide layout to the beginning of the presentation, sets the text for the title, and adds two paragraphs to the text placeholder. Note that for any slide that has a title, Shapes.Title is equivalent to Shapes.Placeholders(1). Use Placeholders ( index), where index is the placeholder index number, to return a Shape object that represents a single placeholder.
WHAT IS PLACEHOLDER TEXT IN WORD CODE
Use the Placeholders property to return the Placeholders collection. If you are familiar with the Word object module you may notice from the code above that the ContentControl object has a property '.PlaceholderText.
![what is placeholder text in word what is placeholder text in word](https://i.ytimg.com/vi/s_iQSI4ZdXs/hqdefault.jpg)
To change the number of placeholders on a given slide, set the Layout property. You can delete individual placeholders by using the Deletemethod, and you can restore deleted placeholders by using the AddPlaceholder method, but you cannot add any more placeholders to a slide than it had when it was created. Check out our Writing Tips blog for outstanding formatting advice.
![what is placeholder text in word what is placeholder text in word](https://i.ytimg.com/vi/s_iQSI4ZdXs/mqdefault.jpg)
If the slide has a title, the title is the first placeholder in the collection. If you want to include images in a Microsoft Word document, you need to know how text wrapping works. Enter a name for the placeholder in the text field that appears. The Placeholder Name dialog box then opens. From the menu that appears, choose the Add New Placeholder command. Click on Placeholder> Developer tab> Properties in Control section> Enable the box of Remove content control when contents are edited> OK. Then click the Insert Citation drop-down button in the Citations & Bibliography button group. RemarksĮach Shape object in the Placeholders collection represents a placeholder for text, a chart, a table, an organizational chart, or some other type of object. Solution: In the Properties of Placeholder, we need to enable the option Remove content control when contents are edited.
![what is placeholder text in word what is placeholder text in word](https://static.javatpoint.com/msword/images/how-to-insert-a-placeholder-in-word-document4.png)
A collection of all the Shape objects that represent placeholders on the specified slide.