H
Howard Kaikow
It is my understanding that PowerPoint is a single instance app, i.e., there
can be only a single instance of Powerpoint running.
I've been using code such as the following:
'Get existing instance of PowerPoint; otherwise create a new one
' Powerpoint is a single instance application
On Error Resume Next
Set appPPT = GetObject(, "PowerPoint.Application")
If Err.Number = 0 Then
blnNewPPT = False
Else
Set appPPT = New PowerPoint.Application
blnNewPPT = True
End If
On Error Goto 0
and then
With appPPT
If blnNewPPT Then
.Quit
Else
.ActivePresentation.Close
End If
End With
However, I suspect that code may not be good enough.
If I created the NEW PowerPoint instance in code, how can I determine
whether the instance is not being by somebody outside of my code? Somebody
could have started Powerpoint session whilst my code is running, AFTER I
created the NEW Powerpoint.
Is the only choice to leave PowerPoint running?
can be only a single instance of Powerpoint running.
I've been using code such as the following:
'Get existing instance of PowerPoint; otherwise create a new one
' Powerpoint is a single instance application
On Error Resume Next
Set appPPT = GetObject(, "PowerPoint.Application")
If Err.Number = 0 Then
blnNewPPT = False
Else
Set appPPT = New PowerPoint.Application
blnNewPPT = True
End If
On Error Goto 0
and then
With appPPT
If blnNewPPT Then
.Quit
Else
.ActivePresentation.Close
End If
End With
However, I suspect that code may not be good enough.
If I created the NEW PowerPoint instance in code, how can I determine
whether the instance is not being by somebody outside of my code? Somebody
could have started Powerpoint session whilst my code is running, AFTER I
created the NEW Powerpoint.
Is the only choice to leave PowerPoint running?