PowerPoint SlideShow, Mscomm port , VBA closing error

P

Premierjp

I’ve come across a problem using a PowerPoint show, vba and mscom
port. I have a PowerPoint slideshow that generates an error when
attempt to close a show using the quit command. This error does no
occur if PowerPoint is open and the show (xxx.pps) or presentatio
(xxx.ppt) is initiated from PowerPoint. When the Show encounters th
quit command in this case, it shuts down properly without incident.
The PowerPoint slideshow application uses a mscomm port. If I run th
application without starting up the mscomm port using the sho
(xxx.pps) closes without incident. However if the mscomm port is open
It generates the nasty “PowerPoint has encountered a problem and need
to close. “ error box. The application closes the mscomm port usin
the following vba code:
MSComm2.PortOpen = False
I’ve tried setting the mscomm port object equal to nothing, but I ge
the “Invalid use of property” message.
In any case, when I have PowerPoint open the show or presentation th
error is not generated. This error only occurs when the slideshow fil
(xxx.pps) is run from windows explorer. I’m using PowerPoint2002 an
windows 2000 pro operating system.

Here is the vba syntax
Application.SlideShowWindows(Index:=1).View.Exit
Application.Quit
'PowerPoint.Application.Quit

It generates the following error on a slideshow file run from window
explorer. see attached zip file

Here’s the error Report. see attached zip fil

+----------------------------------------------------------------
| Attachment filename: errornreport.zip
|Download attachment: http://www.powerpointforums.com/forums/attachment.php?postid=19783
+----------------------------------------------------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top