Article ID: 172369 - Last Review: October 11, 2006 - Revision: 2.2 PPT97: Viewer Quit Method Does Not Close ViewerThis article was previously published under Q172369 SYMPTOMS
Microsoft PowerPoint Viewer 97 remains running after the Quit method is
carried out in a Microsoft Visual Basic for Applications procedure.
CAUSE
This problem occurs if you obtain a PowerPoint Viewer 97 object reference
while PowerPoint Viewer is running.
WORKAROUNDMicrosoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements.
To work around this problem, you can close PowerPoint Viewer by calling the
Windows application programming interface (API) SendMessage function
with the WM_CLOSE message. As the following sample code demonstrates,
PowerPoint Viewer cleans up the environment and exits when it receives the
WM_CLOSE message.
NOTE: The following code does not close PowerPoint Viewer if it is showing a presentation. REFERENCES
For more information about getting help with Visual Basic for Applications,
please see the following article in the Microsoft Knowledge Base:
163435
(http://support.microsoft.com/kb/163435/EN-US/
)
VBA: Programming Resources for Visual Basic for Applications
| Article Translations
|

Back to the top
