-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Nathan Jones edited this page Aug 5, 2019
·
12 revisions
To begin working with PowerPoint using win32com, you need to declare a PowerPoint Application object:
There are several ways to do this.
Declare a PowerPoint Application object from the currently active PowerPoint instance:
import pptxcom as pt
PPT = pt.active_app()
Open an existing PowerPoint file and create a PowerPoint Presentation object from that:
import pptxcom as pt
Pres = pt.active_pres(r'path/to/filename.pptx')
There are several more options available, but the basic methods above should get you started and able to play around with some code.
- Working with Shapes
- PowerPoint Object Model
- PyWin32 and Win32COM
- Reading Information from Presentations
- Adding Information to Presentations
- Editing Information in Presentations