PowerPoint Closing Problem

T

technoknight

This is about some more insight into my older problem. I will explain it again.

I am into PPT automation. I have made an application which does the follwing:
1) Opens a copy of the active ppt as ~temp.ppt (in the system's temp folder).
2.) Applies some animations to this temp file.
3.) Plays slideshow.
4.) Closes the ~temp.ppt file.
5.) Return back to the original ppt.

The problem comes when the ~temp.ppt file closes. When the ~temp.ppt file
closes the PowerPoint crashes giving me a "send - dont' send error report
message window". But, I have observed that if I don't close the ~temp.ppt
file then the powerpoint will not crash, but then I will have to close the
ppt manually. So, can anyone give me some idea as to what can be the problem.
I have to close the ~temp.ppt automatically (programtically). Or any other
sugestion.

To close ~temp.ppt file I am doing this:

'To open a duplicate ppt
sTempFile = GetUserTempFolder & "~temp.ppt"
Call App_.ActivePresentation.SaveCopyAs(sTempFile)
Set oPresCopied = App_.Presentations.Open(sTempFile, , False)

'To Close the ppt
App_ActivePresentation.close

Also, I have tried the following to close the ~temp.ppt:
Dim PPT1 as Presentation
Set PPT1=sTempFile
PPT1.close

Please, answer urgently. :)

Thanks a lot in advance.
 

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