CreateObject does not create new PowerPoint session (222783)
The information in this article applies to:
- Microsoft Office PowerPoint 2003
- Microsoft PowerPoint 2002
- Microsoft PowerPoint 2000
This article was previously published under Q222783 SYMPTOMS
When you use the CreateObject function, which is used to control the Microsoft PowerPoint object model from Microsoft Visual Basic for Applications code, you may notice the following behavior:
- If PowerPoint is running, a new instance of PowerPoint is not created.
- If PowerPoint is not running, a new instance is created.
This behavior is normal.
CAUSE
PowerPoint is a single-session program. CreateObject cannot create a new
instance of PowerPoint, if it is already running. This behavior is similar
to the Visual Basic GetObject function.
REFERENCES
For more information about how to use the sample code in this article, click
the article number below to view the article in the Microsoft Knowledge
Base:
212536
How to run sample code from Knowledge Base Articles
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbcode kbdtacode kbinfo kbmacro kbProgramming KB222783 |
---|
|