The information in this article applies to:
SYMPTOMSIf you try to use a Microsoft Excel or Word macro, or another Visual Basic for Applications procedure to open a PowerPoint 95 presentation, you may receive the following error message:
CAUSEThis error will occur if you use the Application.Presentations.Open method before showing the PowerPoint application window at least once. A simple example of code that will produce this error follows:
The error will occur at the "Set Pres..." line.
RESOLUTION
Microsoft provides examples of Visual Basic procedures for illustration
only, without warranty either expressed or implied, including but not
limited to the implied warranties of merchantability and/or fitness for
a particular purpose. This Visual Basic procedure is provided 'as is'
and Microsoft does not guarantee that it can be used in all situations.
Microsoft does not support modifications of this procedure to suit
customer requirements for a particular purpose.
ppt.AppWindow.Windowstate = ppWindowMinimizedThis line must come after the "ppt.AppWindow.Visible" command, otherwise the window will not be minimized. The code might look something like the following:
STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. Additional query words: VBA Access Excel PowerPoint VB powernt
Keywords : kbcode kbmacro kbprg kbdta kbdtacode kbpptvba |
Last Reviewed: October 13, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |