


Note In this code, the sTemplate and sPic constants represent the full path and filename to a PowerPoint template and a picture, respectively. 'Close the presentation without saving changes and quit PowerPoint. 'Run the slide show and wait for the slide show to end.ĭo While >= 1

'Prevent Office Assistant from displaying alert messages. EntryEffect = ĭim oSettings As PowerPoint.SlideShowSettings 'Modify the slide show transition settings for all 3 slides in 'Add a text effect to the slide and apply shadows to the text effect. 'slide and change the chart type to a 3D pie chart. 'Add text to the slide title, format the text. 'Add text to the slide, change the font and insert/position a 'Create a new presentation based on the specified template. 'Start Powerpoint and make its window visible but minimized.

"C:\Program Files\Microsoft Office\Templates\Presentation Designs\Blends.pot" Replace with the following code: Private Sub Button1_Click(ByVal sender As System.Object, _ In the code window, locate the following code Private Sub Button1_Click(ByVal sender As System.Object, _īyVal e As System.EventArgs) Handles Button1.Click Toolbox to display the Toolbox and add a button to Form1.ĭouble-click Button1. Microsoft Office XP does not include PIAs, but they may be downloaded.Ĭlick OK in the Add References dialog box to accept your selections. Note Microsoft Office 2003 and later versions of Microsoft Office includes Primary Interop Assemblies (PIAs). Also locate the Microsoft Graph Object Library, and then click Select. Microsoft PowerPoint Object Library, and then click On the Project menu, click Add Reference.Form1 is created by default.Īdd a reference to the Microsoft PowerPoint Object Library and the Microsoft Graph Object Library. Select Windows Application from the Visual Basic Projects types. On the File menu, click New and then click Project. More Information Create an automation client for Microsoft PowerPoint This article describes how to use automation to create and to show a Microsoft PowerPoint presentation by using Microsoft Visual Basic. How to use automation to create and to show a PowerPoint presentation by using Visual Basic.
