Chapter 24. Visio Automation and Microsoft PowerPoint 2000 Interaction

IN THIS CHAPTER

  • Sending Data to PowerPoint

  • Getting Data from PowerPoint

  • Querying PowerPoint for Visio's Use

  • Severing the Connection

As we saw with Visio earlier, there are three methods of contacting PowerPoint, the application from within Visio: GetObject(), CreateObject(), and New. The first of these presumes that PowerPoint is already up and running. The second and third assume nothing and will launch a new copy of PowerPoint even if it is already running. Listing 24.1 is the syntax.

Listing 24.1. Launching the PowerPoint Application from Code
 Public Sub RunPowerPoint1() Dim pptApp As PowerPoint.Application Set pptApp = GetObject(,"PowerPoint.Application") pptApp.Visible ...

Get Professional Development with Visio® 2000 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.