Hi Steve
Since I saved that file, is it possible to get rid of it after I opened
it? Here is my code:
ActivePresentation.SaveAs "~tmp", ppSaveAsPresentation
With PowerPoint.Presentations.Open("~tmp.ppt", msoFalse, msoTrue,
msoFalse)
.Application.Visible = msoTrue
.Saved = msoFalse
End With
PowerPoint.Presentations(1).Close
I have set it up so the user will get a SaveAs window when ever they
want to save, so they can't save to the file that I created.
The macro will only be active if the orignal (Presentations(1)) is
still open. The new file "~tmp.ppt" will have the macro, but it will
not run until activeated. So is it possible to delete the "~tmp.ppt"
file that I created, before the presentations(1) is closed? I tried
the following:
FileSystem.Kill ActivePresentation.Path & "~tmp.ppt"
but as expected, I was not allowed to do it, got error of permission
denied.
My assumption/guess is I can't do it, but I am trying my luck. If it is
not possible to do it before it's closed, is there a way to get ride of
it at all (err. i don't mean by the user.

)?
Thanks
Yanwei