P
Phil Spiby
I have set up a routine to check when a presentation is being closed, and if
the presentation is not readonly I perform some administrative tasks.
However I have found that this is failing under Powerpoint 10.
The symptoms are:
if I close a non-readonly presentation but leave powerpoint running OK
if I close a readonly presentation but leave powerpoint running
OK
if I close powerpoint with a non-readonly presentation
OK
if I close powerpoint with a readonly presentation
ERROR!
The presentation.readonly value is set to msoFalse, even though the
presentation was opened in readonly mode, my code then tries to perform the
administrative tasks on a file which has been opened in readonly mode.
Private Sub myApp_PresentationClose(ByVal Pres As Presentation)
If ES_template(Pres) Then
If Not Pres.ReadOnly Then
ES_Closing.setPresentation Pres
ES_Closing.Show
End If
End If
End Sub
the presentation is not readonly I perform some administrative tasks.
However I have found that this is failing under Powerpoint 10.
The symptoms are:
if I close a non-readonly presentation but leave powerpoint running OK
if I close a readonly presentation but leave powerpoint running
OK
if I close powerpoint with a non-readonly presentation
OK
if I close powerpoint with a readonly presentation
ERROR!
The presentation.readonly value is set to msoFalse, even though the
presentation was opened in readonly mode, my code then tries to perform the
administrative tasks on a file which has been opened in readonly mode.
Private Sub myApp_PresentationClose(ByVal Pres As Presentation)
If ES_template(Pres) Then
If Not Pres.ReadOnly Then
ES_Closing.setPresentation Pres
ES_Closing.Show
End If
End If
End Sub