Delete project after close

M

Mr Exxxel

Is it possible to delete a Project after its closed by the user? As far as I
know there is no AfterClose event that I can use.
 
E

Emmanuel REGIS

Hi,

I red in help doc that the last event (after close so) is "Desactivate",
perhaps, you can try to use it with tests.

I hope help you,
Emmanuel.
 
J

Jim Aksel

Kill(Path to object as string)
You will need to use that in association with the event described.
Might there be an alternative to not allow the user to save the file to
begin with?
--
If this post was helpful, please consider rating it.

Jim
It''s software; it''s not allowed to win.

Visit http://project.mvps.org/ for FAQs and more information
about Microsoft Project
 
M

Mr Exxxel

Well this the Deactivate event sounds lika the one I want to use, but I cant
get it to work. It only trigger when I switch from the current project to
another project not when I close the project. Can anyone else get it to work.
 
S

Scudder

There is no after project close event and the deactivate event does not
trigger for the last project closed.

The only way with this is to subclass or hook MSProject and hook the project
window close message passed to the project window.
 

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