background preloader

ExcelWorship

Facebook Twitter

VBA Express : Add Slides and Text to a Slide. Working with Shapes on Slides. Just as a PowerPoint presentation consists of a collection of slides, a PowerPoint slide typically consists of one or more Shape objects. Whether a slide contains a picture, a title, text, an OLE object, an AutoShape, or other content, everything on the slide is a Shape object. You can refer to a Shape object on a slide in two ways: By using the value of the shape's index in the collection of shapes on the slide. A shape will have an index value equal to its position in the Shapes collection at the time it was added to the collection.

To work with multiple shapes on a slide, you use the Range method of the Shapes collection. Adding Shapes to Slides Typically, you use the Add method of a collection object to add an item to the collection. Sub AddTestSlideAndShapes() ' Illustrate how to add shapes to a slide and then ' center the shapes in relation to the slide and ' each other. Positioning Shapes on Slides The height and width of shapes are specified in pixels. Walkthrough: Creating Your First Application-Level Add-in for PowerPoint. This walkthrough shows you how to create an application-level add-in for Microsoft Office PowerPoint. The features that you create in this kind of solution are available to the application itself, regardless of which presentations are open.

For more information, see Office Solutions Development Overview. Applies to: The information in this topic applies to application-level projects for PowerPoint 2013 and PowerPoint 2010. For more information, see Features Available by Office Application and Project Type. This walkthrough illustrates the following tasks: Creating a PowerPoint add-in project for PowerPoint. Writing code that uses the object model of PowerPoint to add a text box to each new slide. For a related video demonstration, see How Do I: Create an Add-in for Microsoft PowerPoint?. You need the following components to complete this walkthrough: An edition of Visual Studio 2013 that includes the Microsoft Office developer tools.

To create a new project Start Visual Studio. Working with the Presentation Object. The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location. When you are working with Microsoft® PowerPoint® objects through Microsoft® Visual Basic® for Applications (VBA), you typically work with a Presentation object and the slides it contains. You use a PowerPoint template — a presentation saved with a .pot extension that contains master slides and might contain regular slides — to apply a consistent look to an entire presentation. In This Section Create a reference to an open presentation by using the Application object's ActivePresentation property or by accessing a Presentation object as a member of the Presentations collection.

Use the Presentations collection's Open method to open a presentation saved to disk and create a reference to that presentation at the same time. Use a PowerPoint template to apply a consistent look to an entire presentation. Related Sections. .net - Using C# to display powerpoint.